This commit is contained in:
Toks
2013-10-18 13:50:29 -04:00
parent edd97f5958
commit a26c0e26fd

View File

@@ -18,11 +18,13 @@
<%= render "forum_posts/listing", :forum_posts => @forum_posts %>
<% if CurrentUser.is_member? %>
<p><%= link_to "Reply &raquo;".html_safe, new_forum_post_path(:topic_id => @forum_topic.id), :id => "new-response-link" %></p>
<% if CurrentUser.is_janitor? || !@forum_topic.is_locked? %>
<p><%= link_to "Reply &raquo;".html_safe, new_forum_post_path(:topic_id => @forum_topic.id), :id => "new-response-link" %></p>
<div style="display: none;" id="topic-response">
<%= render "forum_posts/partials/new/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
</div>
<div style="display: none;" id="topic-response">
<%= render "forum_posts/partials/new/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
</div>
<% end %>
<% end %>
<%= numbered_paginator(@forum_posts) %>