OSDN Git Service

cf81c732bc834d24cb6096586440d2ffd3322049
[pettanr/pettanr.git] / app / views / artists / list.html.erb
1 <h1>Listing artists</h1>
2
3 <table>
4   <tr>
5     <th>id</th>
6     <th>email</th>
7     <th>name</th>
8     <th>homepage_url</th>
9     <th>api_url</th>
10     <th>default_lisence</th>
11     <th>crowled_at</th>
12     <th>author_id</th>
13     <th>created_at</th>
14     <th>updated_at</th>
15   </tr>
16
17 <% @artists.each do |artist| %>
18   <tr>
19     <td><%= link_to artist.id, :action => :browse, :id => artist.id %></td>
20     <td><%= h artist.email %></td>
21     <td><%= h artist.name %></td>
22     <td><%= h artist.homepage_url %></td>
23     <td><%= link_to artist.default_lisence_id, :controller => 'lisences', :action => :browse, :id => artist.default_lisence_id %></td>
24     <td><%= artist.crowled_at %></td>
25     <td><%= h artist.api_url %></td>
26     <td><%= link_to artist.author_id, :controller => 'authors', :action => :browse, :id => artist.author_id %></td>
27     <td><%= artist.created_at %></td>
28     <td><%= artist.updated_at %></td>
29   </tr>
30 <% end %>
31 </table>