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