OSDN Git Service

t#32025:comic rename
[pettanr/pettanr.git] / app / views / scrolls / list.html.erb
diff --git a/app/views/scrolls/list.html.erb b/app/views/scrolls/list.html.erb
new file mode 100644 (file)
index 0000000..43fdf7e
--- /dev/null
@@ -0,0 +1,24 @@
+<h1><%= t '.title' -%></h1>
+
+<table>
+  <tr>
+    <th><%= t_m 'Comic.id' -%></th>
+    <th><%= t_m 'Comic.title' -%></th>
+    <th><%= t_m 'Comic.visible' -%></th>
+    <th><%= t_m 'Comic.author_id' -%></th>
+    <th><%= t_m 'Comic.created_at' -%></th>
+    <th><%= t_m 'Comic.updated_at' -%></th>
+  </tr>
+
+<% @comics.each do |comic| %>
+  <tr>
+    <td><%= link_to comic.id, browse_comic_path(comic) %></td>
+    <td><%= h(truncate(comic.title, :length => 12)) %></td>
+    <td><%= comic.visible %></td>
+    <td><%= link_to comic.author_id, browse_author_path(comic.author) %></td>
+    <td><%= l comic.created_at %></td>
+    <td><%= l comic.updated_at %></td>
+  </tr>
+<% end %>
+</table>
+