This commit is contained in:
r888888888
2015-06-25 13:51:05 -07:00
parent 3cc7dbbedc
commit 1d9596d7f2
64 changed files with 244 additions and 140 deletions

View File

@@ -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 %>

View File

@@ -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>