OSDN Git Service

t#29705:create story show
[pettanr/pettanr.git] / app / views / panels / _standard.html.erb
index 117823b..3b4c7dc 100644 (file)
@@ -1,5 +1,5 @@
 <div class="pettanr-comic-panel" style="width:<%= @panel.width %>px;height:<%= @panel.height %>px;border-width: <%= @panel.border %>px; background-color:white;">
-  <% @panel.each_element do |elm| %>
+  <% @panel.panel_elements.each do |elm| %>
     <% if elm.kind_of?(PanelPicture) %>
         <img id="vPicture<%= elm.id -%>" width="<%= elm.width -%>" height="<%= elm.height -%>" style="top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; " src="<%= elm.url -%>">
     <% end %>