Files
danbooru/app/views/post_events/index.html.erb
2015-08-14 11:20:46 -07:00

45 lines
1.1 KiB
Plaintext

<div id="c-post-flags">
<div id="a-index">
<h1>Flags &amp; Appeals</h1>
<table width="100%" class="striped">
<thead>
<tr>
<th width="5%">Type</th>
<% if CurrentUser.is_moderator? %>
<th width="10%">Creator</th>
<% end %>
<th>Reason</th>
<th width="5%">Resolved?</th>
<th width="15%">Date</th>
</tr>
</thead>
<tbody>
<% @events.each do |event| %>
<tr class="resolved-<%= event.is_resolved %>">
<td><%= event.type_name %></td>
<% if CurrentUser.is_moderator? %>
<td>
<%= link_to_user event.creator %>
</td>
<% end %>
<td><%= format_text event.reason %></td>
<td>
<% if event.is_resolved %>
yes
<% else %>
no
<% end %>
</td>
<td><%= compact_time event.created_at %></td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
<% content_for(:page_title) do %>
Events - <%= Danbooru.config.app_name %>
<% end %>