Files
danbooru/app/views/artists/index.html.erb
2011-08-15 17:10:35 -04:00

44 lines
1.1 KiB
Plaintext

<div id="c-artists">
<div id="a-index">
<h1>Artists</h1>
<table class="striped" width="100%">
<thead>
<tr>
<th width="45%">Primary Name</th>
<th width="45%">Secondary Names</th>
<th width="10%">Status</th>
</tr>
</thead>
<tbody>
<% @artists.each do |artist| %>
<%= content_tag(:tr, :id => "artist-#{artist.id}") do %>
<td>
<%= link_to h(artist.name), artist_path(artist) %>
<% if !artist.group_name.blank? %>
(group:<%= link_to(artist.group_name, artist_path(artist)) %>)
<% end %>
</td>
<td><%= artist.other_names %></td>
<td>
<% if artist.is_active? %>
Active
<% else %>
Deleted
<% end %>
<% if artist.is_banned? %>
Banned
<% end %>
</td>
<% end %>
<% end %>
</tbody>
</table>
<%= numbered_paginator(@artists) %>
<%= render "secondary_links" %>
</div>
</div>