hide deleted forum posts in search
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @forum_posts.each do |forum_post| %>
|
<% @forum_posts.each do |forum_post| %>
|
||||||
|
<% if CurrentUser.is_janitor? || !forum_post.is_deleted? %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %></td>
|
<td><%= link_to forum_post.topic.title, forum_topic_path(forum_post.topic) %></td>
|
||||||
<td>
|
<td>
|
||||||
@@ -23,6 +24,7 @@
|
|||||||
<td><%= time_ago_in_words_tagged forum_post.created_at %></td>
|
<td><%= time_ago_in_words_tagged forum_post.created_at %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user