forked from e621ng/e621ng
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
<div id="c-post-approvals">
|
|
<div id="a-index">
|
|
<h1>Approvals</h1>
|
|
<%= render "posts/partials/common/inline_blacklist" %>
|
|
|
|
<%= form_search(path: post_approvals_path) do |f| %>
|
|
<%= f.user :user, label: "Approver" %>
|
|
<%= f.input :post_tags_match, label: "Tags", autocomplete: "tag-query" %>
|
|
<% end %>
|
|
|
|
<table class="striped">
|
|
<thead>
|
|
<tr>
|
|
<th width="1%">Post</th>
|
|
<th width="15%">Approver</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @post_approvals.each do |post_approval| %>
|
|
<tr>
|
|
<td>
|
|
<%= PostPresenter.preview(post_approval.post, show_deleted: true) %>
|
|
</td>
|
|
|
|
<td>
|
|
<%= link_to_user post_approval.user %>
|
|
<%= link_to "»", post_approvals_path(search: params[:search].merge(user_name: post_approval.user.name)) %>
|
|
<br><%= time_ago_in_words_tagged post_approval.created_at %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= numbered_paginator(@post_approvals) %>
|
|
</div>
|
|
</div>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Approvals
|
|
<% end %>
|