OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / sheet_panels / list.html.erb
diff --git a/app/views/sheet_panels/list.html.erb b/app/views/sheet_panels/list.html.erb
new file mode 100644 (file)
index 0000000..7790abc
--- /dev/null
@@ -0,0 +1,29 @@
+<h1>Listing SheetPanel</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>sheet_id</th>
+    <th>panel_id</th>
+    <th>t</th>
+    <th>author_id</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+  </tr>
+
+<%  @sheet_panels.each do |sheet_panel| %>
+  <tr>
+    <td><%= link_to sheet_panel.id, :action => :browse, :id => sheet_panel.id %></td>
+    <td><%= sheet_panel.sheet_id %></td>
+    <td><%= sheet_panel.panel_id %></td>
+    <td><%= sheet_panel.t %></td>
+    <td><%= link_to sheet_panel.author_id, :controller => '/authors', :action => :browse, :id => sheet_panel.author_id %></td>
+    <td><%= sheet_panel.created_at %></td>
+    <td><%= sheet_panel.updated_at %></td>
+    <td>
+    </td>
+  </tr>
+<% end %>
+</table>
+