45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
<div id="c-pools">
|
|
<div id="a-index">
|
|
<%= render "search" %>
|
|
<table class="striped" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%"></th>
|
|
<th width="60%">Name</th>
|
|
<th width="10%">Count</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @pools.each do |pool| %>
|
|
<%= content_tag(:tr, :id => "pool-#{pool.id}", :class => "pool-category-#{pool.category}") do %>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
<%= link_to pool.pretty_name, pool_path(pool) %>
|
|
<% if pool.is_deleted? %>
|
|
<span class="inactive">(deleted)</span>
|
|
<% end %>
|
|
|
|
<% if pool.post_count > CurrentUser.user.per_page %>
|
|
<%= link_to "page #{pool.last_page}", pool_path(pool, :page => pool.last_page), :class => "last-page" %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= pool.post_count %>
|
|
</td>
|
|
<% end %>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= numbered_paginator(@pools) %>
|
|
|
|
<%= render "secondary_links" %>
|
|
</div>
|
|
</div>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Pools - <%= Danbooru.config.app_name %>
|
|
<% end %>
|