OSDN Git Service

import all source code
[pettanr/pettanr.git] / app / views / speach_balloons / show.html.erb
diff --git a/app/views/speach_balloons/show.html.erb b/app/views/speach_balloons/show.html.erb
new file mode 100644 (file)
index 0000000..122485b
--- /dev/null
@@ -0,0 +1,26 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b>Name:</b>
+  <%= h @speach_balloon.name %>
+</p>
+
+<p>
+  <b>Tail limit:</b>
+  <%= @speach_balloon.tail_limit %>
+</p>
+
+<p>
+  <b>Border limit:</b>
+  <%= @speach_balloon.border_limit %>
+</p>
+<% @speach_balloon.balloon_templates.each do |balloon_template| -%>\r
+  <div>\r
+    <p>\r
+      Tail:<%= balloon_template.tail -%>\r
+      Border:<%= balloon_template.border -%>\r
+    </p>\r
+    <img src="<%= balloon_template.resource_picture.url -%>" />\r
+  </div>\r
+<% end -%>\r
+<%= link_to 'Back', speach_balloons_path %>