OSDN Git Service

add files
[pettanr/pettanr.git] / app / views / balloon_templates / list.html.erb
diff --git a/app/views/balloon_templates/list.html.erb b/app/views/balloon_templates/list.html.erb
new file mode 100644 (file)
index 0000000..2091351
--- /dev/null
@@ -0,0 +1,33 @@
+<h1>Listing balloon_templates</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>speach balloon</th>
+    <th>system_picture</th>
+    <th>Tail</th>
+    <th>size</th>
+    <th>MinWidth</th>
+    <th>MinHeight</th>
+    <th>MaxWidth</th>
+    <th>MaxHeight</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @balloon_templates.each do |balloon_template| %>
+  <tr>
+    <td><%= link_to balloon_template.id, :action => :browse, :id => balloon_template.id %></td>
+    <td><%= link_to balloon_template.speach_balloon_id, :controller => 'speach_balloons', :action => :browse, :id => balloon_template.speach_balloon_id %></td>
+    <td><%= link_to balloon_template.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => balloon_template.system_picture_id %></td>
+    <td><%= balloon_template.tail %></td>
+    <td><%= balloon_template.size %></td>
+    <td><%= balloon_template.min_width %></td>
+    <td><%= balloon_template.min_height %></td>
+    <td><%= balloon_template.max_width %></td>
+    <td><%= balloon_template.max_height %></td>
+    <td><%= balloon_template.created_at %></td>
+    <td><%= balloon_template.updated_at %></td>
+  </tr>
+<% end %>
+</table>