add combined flag+appeal listing for posts #262
This commit is contained in:
38
app/views/post_events/index.html.erb
Normal file
38
app/views/post_events/index.html.erb
Normal file
@@ -0,0 +1,38 @@
|
||||
<div id="c-post-flags">
|
||||
<div id="a-index">
|
||||
<h1>Flags & Appeals</h1>
|
||||
|
||||
<table width="100%" class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">Type</th>
|
||||
<th width="10%">Creator</th>
|
||||
<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>
|
||||
<td><%= link_to_user event.creator %></td>
|
||||
<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 %>
|
||||
@@ -26,8 +26,7 @@
|
||||
<ul>
|
||||
<li><%= fast_link_to "Tags", post_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||
<li><%= fast_link_to "Notes", note_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||
<li><%= fast_link_to "Flags", post_flags_path(:search => {:post_id => @post.id}) %></li>
|
||||
<li><%= fast_link_to "Appeals", post_appeals_path(:search => {:post_id => @post.id}) %></li>
|
||||
<li><%= fast_link_to "Flags & Appeals", post_events_path(@post.id) %></li>
|
||||
<li><%= fast_link_to "Commentary", artist_commentary_versions_path(:search => {:post_id => @post.id}) %></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user