36 lines
964 B
Plaintext
36 lines
964 B
Plaintext
<div id="c-post-flags">
|
|
<div id="a-index">
|
|
<h1>Flags</h1>
|
|
<table width="100%" class="striped">
|
|
<thead>
|
|
<tr>
|
|
<th width="1%"></th>
|
|
<% if CurrentUser.user.is_janitor? %>
|
|
<th>Creator</th>
|
|
<% end %>
|
|
<th>Reason</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @post_flags.each do |post_flag| %>
|
|
<tr class="resolved-<%= post_flag.is_resolved? %>">
|
|
<td><%= PostPresenter.preview(post_flag.post) %></td>
|
|
<% if CurrentUser.user.is_janitor? %>
|
|
<td>
|
|
<%= link_to post_flag.creator.name, user_path(post_flag.creator) %>
|
|
</td>
|
|
<% end %>
|
|
<td><%= format_text post_flag.reason %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= numbered_paginator(@post_flags) %>
|
|
</div>
|
|
</div>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Flags - <%= Danbooru.config.app_name %>
|
|
<% end %>
|