This commit is contained in:
albert
2013-03-08 17:18:06 -05:00
parent 733c64ff2a
commit b8e5ba9098
2 changed files with 16 additions and 8 deletions

View File

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

View File

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