Files
danbooru/app/views/pool_versions/index.html.erb
2013-03-19 23:11:58 +11:00

45 lines
1.4 KiB
Plaintext

<div id="c-pools">
<div id="a-index">
<h1>Pool History</h1>
<table width="100%" class="striped">
<thead>
<tr>
<th>Pool</th>
<th>Post Count</th>
<th>Changes</th>
<th>Updater</th>
<th>IP Address</th>
<th>Date</th>
<th></th>
</tr>
</thead>
<tbody>
<% @pool_versions.each do |pool_version| %>
<tr>
<td><%= link_to pool_version.pool.name, pool_path(pool_version.pool_id) %></td>
<td><%= link_to pool_version.post_id_array.size, pool_versions_path(:search => {:pool_id => pool_version.pool_id}) %></td>
<td><%= pool_version_diff(pool_version) %></td>
<td><%= link_to pool_version.updater_name, user_path(pool_version.updater_id) %></td>
<td>
<% if CurrentUser.is_janitor? %>
<%= pool_version.updater_ip_addr %>
<% end %>
</td>
<td><%= compact_time pool_version.updated_at %></td>
<td><%= link_to "Revert", revert_pool_path(pool_version.pool_id, :version => pool_version.id) %></td>
</tr>
<% end %>
</tbody>
</table>
<%= numbered_paginator(@pool_versions) %>
</div>
</div>
<%= render "pools/secondary_links" %>
<% content_for(:page_title) do %>
Pool Versions - <%= Danbooru.config.app_name %>
<% end %>