OSDN Git Service

speach rename to speech
[pettanr/pettanr.git] / app / views / speech_balloon_templates / index.html.erb
diff --git a/app/views/speech_balloon_templates/index.html.erb b/app/views/speech_balloon_templates/index.html.erb
new file mode 100644 (file)
index 0000000..3ea04e5
--- /dev/null
@@ -0,0 +1,26 @@
+<h1>Listing speech_balloons</h1>
+<table>
+  <tr>
+    <th>Name</th>
+    <th>Tail count</th>
+    <th>size count</th>
+    <th>t</th>
+    <th></th>
+    <th></th>
+  </tr>
+
+<% @speech_balloons.each do |speech_balloon| %>
+  <tr>
+    <td><%= h speech_balloon.name %></td>
+    <td><%= speech_balloon.tail_count %></td>
+    <td><%= speech_balloon.size_count %></td>
+    <td><%= speech_balloon.t %></td>
+    <td><%= link_to 'show', speech_balloon %></td>
+    <td>
+      <% if admin_signed_in? -%>
+        <%= link_to 'Destroy', speech_balloon, confirm: 'Are you sure?', method: :delete %>
+      <% end -%>
+    </td>
+  </tr>
+<% end %>
+</table>