OSDN Git Service

t#:
[pettanr/pettanr.git] / app / views / speech_balloons / show.html.erb
index 6ef4812..b16e221 100644 (file)
@@ -1,31 +1,14 @@
+<h1><%= t('.title') %></h1>
 <p id="notice"><%= notice %></p>
 
-<p>
-  <b>Name:</b>
-  <%= h @speech_balloon.name %>
-</p>
+<%= render 'speech_balloons/standard', :panel => @speech_balloon.panel, :operators => @operators, :spot => @speech_balloon %>
 
 <p>
-  <b>Tail count:</b>
-  <%= @speech_balloon.tail_count %>
+  <b><%= t_m 'SpeechBalloon.caption' -%>:</b>
+  <%= h @speech_balloon.caption %>
 </p>
 
-<p>
-  <b>size count:</b>
-  <%= @speech_balloon.size_count %>
-</p>
+<%= link_to t('link.edit'), edit_speech_balloon_path(@speech_balloon) %>
+<%= link_to t('link.destroy'), speech_balloon_path(@speech_balloon), :method => :delete %>
 
-<p>
-  <b>t:</b>
-  <%= @speech_balloon.t %>
-</p>
-<% @speech_balloon.balloon_templates.each do |balloon_template| -%>\r
-  <div>\r
-    <p>\r
-      Tail:<%= balloon_template.tail -%>\r
-      Size:<%= balloon_template.size -%>\r
-    </p>\r
-    <img src="<%= balloon_template.system_picture.url -%>" />\r
-  </div>\r
-<% end -%>\r
-<%= link_to 'Back', speech_balloons_path %>
+<%= render 'panels/element_copy', :element => @speech_balloon, :operators => @operators %>