Files
danbooru/app/views/pools/index.html.erb
Toks 4f42ab8bdb adds support for user level-dependent classes
all links to users should have their class attribute set to that user's
level_class
2013-03-30 12:04:58 -04:00

41 lines
997 B
Plaintext

<div id="c-pools">
<div id="a-index">
<table class="striped" width="100%">
<thead>
<tr>
<th width="5%"></th>
<th width="60%">Name</th>
<th width="25%">Creator</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) %>
</td>
<td>
<%= link_to h(pool.creator.name), user_path(pool.creator), { :class => pool.creator.level_class } %>
</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 %>