修复回复问题

This commit is contained in:
Alsotang 2014-05-07 16:05:15 +08:00
parent 984bb89224
commit 4b8dc5d706
3 changed files with 10 additions and 10 deletions

View File

@ -10,13 +10,13 @@
</div>
<div class='inner post'>
<% if(typeof(edit_error) !== 'undefined' && edit_error){ %>
<div class="alert alert-error">
<div class="alert alert-error">
<a class="close" data-dismiss="alert" href="#">&times;</a>
<strong><%= edit_error %></strong>
</div>
<% } %>
<% if(typeof(error) !== 'undefined' && error){ %>
<div class="alert alert-error" >
<div class="alert alert-error" >
<strong><%= error %></strong>
</div>
<% }else{ %>
@ -27,7 +27,7 @@
<textarea class='editor' name='t_content' rows='20'
placeholder='回复支持 Markdown 语法, 请注意标记代码'
autofocus
><%= locals.content || '' %></textarea>
><%= typeof(content) !== 'undefined' && content || '' %></textarea>
<div class='editor_buttons'>
<button class='btn action_preview'>预览</button>
<button id='submit_btn' type="submit" class='btn btn-primary'>提交</button>
@ -47,7 +47,7 @@
</form>
</div>
<% } %>
</div>
</div>
</div>
<!-- markdown editor -->

View File

@ -14,13 +14,13 @@
</div>
<div class='inner post'>
<% if(typeof(edit_error) !== 'undefined' && edit_error){ %>
<div class="alert alert-error">
<div class="alert alert-error">
<a class="close" data-dismiss="alert" href="#">&times;</a>
<strong><%= edit_error %></strong>
</div>
<% } %>
<% if(typeof(error) !== 'undefined' && error){ %>
<div class="alert alert-error" >
<div class="alert alert-error" >
<strong><%= error %></strong>
</div>
<% }else{ %>
@ -32,13 +32,13 @@
<fieldset>
<textarea autofocus class='span9' id='title' name='title' rows='1'
placeholder="标题字数 10 字以上"
><%= locals.title || '' %></textarea>
><%= typeof(title) !== 'undefined' && title || '' %></textarea>
<div class='markdown_editor in_editor'>
<div class='markdown_in_editor'>
<textarea class='editor' name='t_content' rows='20'
placeholder='文章支持 Markdown 语法, 请注意标记代码'
><%= locals.content || '' %></textarea>
><%= typeof(content) !== 'undefined' && content || '' %></textarea>
<div class='editor_buttons'>
<button class='btn action_preview'>预览</button>
<button id='submit_btn' type="submit" class='btn btn-primary'>提交</button>
@ -59,7 +59,7 @@
</form>
</div>
<% } %>
</div>
</div>
</div>
<!-- markdown editor -->

View File

@ -80,7 +80,7 @@
<br/><br/>
Email (Seen by Administrator): <a href="mailto:<%= user.email %>"><%= user.email %></a>
<% if (!user.active) { %>
<a class='btn' href="/active_account?key=<%- locals.token %>&name=<%= user.name %>" target="_blank">激活账号</a>
<a class='btn' href="/active_account?key=<%- typeof(token) !== 'undefined' && token %>&name=<%= user.name %>" target="_blank">激活账号</a>
<% } %>
<% } %>
</div>