fixes #740
This commit is contained in:
@@ -2,4 +2,12 @@ div#c-post-flags {
|
||||
li {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
tr.resolved-true {
|
||||
background: #DDD !important;
|
||||
}
|
||||
|
||||
tr.resolved-false {
|
||||
background: #FFF !important;
|
||||
}
|
||||
}
|
||||
@@ -5,22 +5,22 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="1%"></th>
|
||||
<th>Creator</th>
|
||||
<% if CurrentUser.user.is_janitor? %>
|
||||
<th>Creator</th>
|
||||
<% end %>
|
||||
<th>Reason</th>
|
||||
<th>Resolved</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @post_flags.each do |post_flag| %>
|
||||
<tr>
|
||||
<tr class="resolved-<%= post_flag.is_resolved? %>">
|
||||
<td><%= PostPresenter.preview(post_flag.post) %></td>
|
||||
<td>
|
||||
<% if CurrentUser.user.is_janitor? %>
|
||||
<% if CurrentUser.user.is_janitor? %>
|
||||
<td>
|
||||
<%= link_to post_flag.creator.name, user_path(post_flag.creator) %>
|
||||
<% end %>
|
||||
</td>
|
||||
</td>
|
||||
<% end %>
|
||||
<td><%= format_text post_flag.reason %></td>
|
||||
<td><%= post_flag.is_resolved? %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user