OSDN Git Service

w
[pettanr/pettanr.git] / app / views / artists / list.html.erb
1 <h1><%= t '.title' -%></h1>
2
3 <table>
4   <tr>
5     <th><%= t_m 'Artist.id' -%></th>
6     <th><%= t_m 'Artist.author_id' -%></th>
7     <th><%= t_m 'Artist.name' -%></th>
8     <th><%= t_m 'Artist.author_id' -%></th>
9     <th><%= t_m 'Artist.created_at' -%></th>
10     <th><%= t_m 'Artist.updated_at' -%></th>
11   </tr>
12   
13   <% @artists.each do |artist| %>
14     <tr>
15       <td><%= link_to artist.id, browse_artist_path(artist) %></td>
16       <td><%= h(truncate(artist.name, :length => 12)) %></td>
17       <td>
18         <% if artist.author_id %>
19           <%= link_to artist.author_id, browse_author_path(artist.author) %>
20         <% end %>
21       </td>
22       <td><%= l artist.created_at %></td>
23       <td><%= l artist.updated_at %></td>
24     </tr>
25   <% end %>
26 </table>