OSDN Git Service

t#31725:add panel inspire
[pettanr/pettanr.git] / app / views / speech_balloons / show.html.erb
index e902962..e5e0b5a 100644 (file)
   <%= @speech_balloon.t %>
 </p>
 
-<p>
-  <b><%= t_m 'Balloon.x' -%>:</b>
-  <%= @speech_balloon.balloon.x %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.y' -%>:</b>
-  <%= @speech_balloon.balloon.y %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.width' -%>:</b>
-  <%= @speech_balloon.balloon.width %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.height' -%>:</b>
-  <%= @speech_balloon.balloon.height %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.r' -%>:</b>
-  <%= @speech_balloon.balloon.r %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.content' -%>:</b>
-  <%= @speech_balloon.speech.content %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.x' -%>:</b>
-  <%= @speech_balloon.speech.x %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.y' -%>:</b>
-  <%= @speech_balloon.speech.y %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.width' -%>:</b>
-  <%= @speech_balloon.speech.width %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.height' -%>:</b>
-  <%= @speech_balloon.speech.height %>
-</p>
+<% if @speech_balloon.balloon %>
+  <p>
+    <b><%= t_m 'Balloon.x' -%>:</b>
+    <%= @speech_balloon.balloon.x %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Balloon.y' -%>:</b>
+    <%= @speech_balloon.balloon.y %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Balloon.width' -%>:</b>
+    <%= @speech_balloon.balloon.width %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Balloon.height' -%>:</b>
+    <%= @speech_balloon.balloon.height %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Balloon.r' -%>:</b>
+    <%= @speech_balloon.balloon.r %>
+  </p>
+<% end %>
+
+<% if @speech_balloon.speech %>
+  <p>
+    <b><%= t_m 'Speech.content' -%>:</b>
+    <%= @speech_balloon.speech.content %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Speech.x' -%>:</b>
+    <%= @speech_balloon.speech.x %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Speech.y' -%>:</b>
+    <%= @speech_balloon.speech.y %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Speech.width' -%>:</b>
+    <%= @speech_balloon.speech.width %>
+  </p>
+
+  <p>
+    <b><%= t_m 'Speech.height' -%>:</b>
+    <%= @speech_balloon.speech.height %>
+  </p>
+<% end %>
 
 <p>
   <b><%= t_m 'SpeechBalloon.created_at' -%>:</b>