<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}") do %>
            <td>

            </td>
            <td>
              <%= link_to h(pool.pretty_name), pool_path(pool), :class => "pool-category-#{pool.category}" %>

              <% 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 %>
