fixes #2417
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<% if CurrentUser.is_janitor? || !forum_post.is_deleted? %>
|
||||
<% if CurrentUser.is_moderator? || !forum_post.is_deleted? %>
|
||||
<article class="forum-post" id="forum_post_<%= forum_post.id %>" data-forum-post-id="<%= forum_post.id %>" data-creator="<%= forum_post.creator.name %>">
|
||||
<div class="author">
|
||||
<h4>
|
||||
@@ -23,7 +23,7 @@
|
||||
<% if CurrentUser.is_member? && @forum_topic %>
|
||||
<li><%= link_to "Quote", new_forum_post_path(:post_id => forum_post.id), :method => :get, :remote => true %></li>
|
||||
<% end %>
|
||||
<% if CurrentUser.is_janitor? && !forum_post.is_original_post? %>
|
||||
<% if CurrentUser.is_moderator? && !forum_post.is_original_post? %>
|
||||
<% if forum_post.is_deleted %>
|
||||
<li><%= link_to "Undelete", undelete_forum_post_path(forum_post.id), :method => :post, :remote => true %></li>
|
||||
<% else %>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @forum_posts.each do |forum_post| %>
|
||||
<% if CurrentUser.is_janitor? || !forum_post.is_deleted? %>
|
||||
<% if CurrentUser.is_moderator? || !forum_post.is_deleted? %>
|
||||
<tr>
|
||||
<td><%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %></td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user