OSDN Git Service

t#30102:update i18n op rp au ar gc gp pc
[pettanr/pettanr.git] / app / views / authors / index.html.erb
index 5691bbb..ee23448 100644 (file)
@@ -1,13 +1,17 @@
-<h1>Listing system_pictures</h1>
+<h1><%= t '.title' -%></h1>
 
 <table>
   <tr>
-    <th>Ext</th>
+    <th><%= t_m 'Author.name' -%></th>
+    <th><%= t_m 'Author.created_at' -%></th>
+    <th><%= t_m 'Author.updated_at' -%></th>
   </tr>
 
-<% @authors.each do |author| %>
-  <tr>
-    <td><%= link_to h(author.name), :action => :show, :id => author.id %></td>
-  </tr>
-<% end %>
+  <% @authors.each do |author| %>
+    <tr>
+      <td><%= link_to h(truncate(author.name, :length => 12)), author_path(author) %></td>
+      <td><%= distance_of_time_in_words_to_now author.created_at %></td>
+      <td><%= distance_of_time_in_words_to_now author.updated_at %></td>
+    </tr>
+  <% end %>
 </table>