OSDN Git Service

t#29983:show panel with license
[pettanr/pettanr.git] / app / views / panels / _standard.html.erb
index 3b4c7dc..778ac0f 100644 (file)
@@ -1,23 +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.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 %>
-    <% if elm.kind_of?(Balloon) %>
-      <div id="vballoon<%= elm.id -%>" class="pettanr-comic-balloon" style="width:<%= elm.width -%>px; height:<%= elm.height -%>px; top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; ">
-        <img src="<%= elm.system_picture.url -%>">
-        <% elm.speeches.each do |speech| %>
-          <p style="top:<%= speech.y -%>px; left:<%= speech.x -%>px;width:<%= speech.width -%>px; height:<%= speech.height -%>px;">
-            <span><%= h speech.content -%></span>
-          </p>
-        <% end %>
-      </div>
-    <% end %>
-  <% end %>
-</div>
-
-<dl class="dl-table">
-<dt>Width:</dt><dd><%= @panel.width %></dd>
-<dt>Height:</dt><dd><%= @panel.height %></dd>
-</dl>
+<%= render 'panels/header', :panel => panel %>
+<%= render 'panels/body', :panel => panel %>
+<%= render 'panels/footer', :panel => panel %>
+<%= render 'panels/licensed_pictures', :licensed_pictures => panel.licensed_pictures %>