Files
danbooru/app/views/pools/index.html.erb
2020-01-04 22:02:43 +00:00

30 lines
1.1 KiB
Plaintext

<div id="c-pools">
<div id="a-index">
<%= render "search", :path => pools_path %>
<%= table_for @pools, {class: "striped", width: "100%"} do |t| %>
<% t.column nil, {width: "5%"} %>
<% t.column "Name", {width: "60%"} do |pool| %>
<span class="pool-category-<%= pool.category %>"><%= link_to pool.pretty_name, pool_path(pool) %></span>
<% if pool.is_deleted? %>
<span class="inactive">(deleted)</span>
<% end %>
<% if pool.last_page > 1 %>
<%= link_to "page #{pool.last_page}", pool_path(pool, :page => pool.last_page), :class => "last-page" %>
<% end %>
<% end %>
<% t.column "Count", {width: "10%"} do |pool| %>
<%= pool.post_count %>
<% end %>
<% end %>
<%= numbered_paginator(@pools) %>
</div>
</div>
<%= render "secondary_links" %>
<% content_for(:html_header) do %>
<meta name="description" content="Pools are groups of posts with something in common. The most common use of pools is for posts that are part of a series (such as a comic, or a group of images released by an artist).">
<% end %>