<img style=" position:absolute; width:<%= panel_picture.width -%>px; height:<%= panel_picture.height -%>px; " src="<%= panel_picture.url -%>">
</div>
<% end %>
- <% panel.balloons.each do |balloon| %>
- <div id="vballoon<%= balloon.id -%>" class="balloon" style="position:relative; top:<%= balloon.y -%>px; left:<%= balloon.x -%>px; z-index:<%= balloon.z -%>; ">
- <img style=" position:absolute; width:<%= balloon.width -%>px; height:<%= balloon.height -%>px; " src="<%= balloon.system_picture.url -%>">
- <% balloon.speeches.each do |speech| %>
- <div style="position:relative; top:<%= speech.y -%>px; left:<%= speech.x -%>px;width:<%= speech.width -%>px; height:<%= speech.height -%>px; top:1px; left:1px; z-index:1; ">
- <%= h speech.content -%>
- </div>
- <% end %>
- </div>
+ <% (panel.speech_balloons || []).each do |sb| %>
+ <% (sb.balloons || []).each do |balloon| %>
+ <% end %>
+ <% (sb.speeches || []).each do |speech| %>
+ <% end %>
<% end %>
</div>
<%= h panel.author.name %> <%= panel.updated_at %>