enable "reply" function on the "Comments" page

This commit is contained in:
Serge Paquet 2014-01-20 21:04:54 -05:00
parent 27caa0a7a6
commit 5bca469035
2 changed files with 4 additions and 3 deletions

View file

@ -59,8 +59,7 @@ class="comment <%= comment.current_vote ? (comment.current_vote[:vote] == 1 ?
<a class="comment_deletor">delete</a>
<% end %>
<% if @user && !comment.story.is_gone? && !comment.is_gone? &&
!(defined?(show_story) && show_story) %>
<% if @user && !comment.story.is_gone? && !comment.is_gone? %>
|
<a class="comment_replier">reply</a>
<% end %>

View file

@ -1,7 +1,9 @@
<ol class="comments comments1">
<% @comments.each do |comment| %>
<li><%= render "comments/comment", :comment => comment,
:show_story => true %></li>
:show_story => true %>
<ol class="comments"></ol>
</li>
<% end %>
</ol>