fixes #2008
This commit is contained in:
@@ -18,11 +18,13 @@
|
|||||||
<%= render "forum_posts/listing", :forum_posts => @forum_posts %>
|
<%= render "forum_posts/listing", :forum_posts => @forum_posts %>
|
||||||
|
|
||||||
<% if CurrentUser.is_member? %>
|
<% if CurrentUser.is_member? %>
|
||||||
<p><%= link_to "Reply »".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 »".html_safe, new_forum_post_path(:topic_id => @forum_topic.id), :id => "new-response-link" %></p>
|
||||||
|
|
||||||
<div style="display: none;" id="topic-response">
|
<div style="display: none;" id="topic-response">
|
||||||
<%= render "forum_posts/partials/new/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
|
<%= render "forum_posts/partials/new/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= numbered_paginator(@forum_posts) %>
|
<%= numbered_paginator(@forum_posts) %>
|
||||||
|
|||||||
Reference in New Issue
Block a user