OSDN Git Service

Merge branch 'v03_test' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v03_test
[pettanr/pettanr.git] / app / views / panels / index.html.erb
1 <h1>Listing panels 最近の投稿</h1>
2 <% @panels.each do |panel| %>
3   <div>
4     <%= link_to h(panel.comic.title), panel.comic %>t:<%= panel.t %>
5 <div class="panel" style="width:<%= panel.width %>px;height:<%= panel.height %>px;overflow:hidden; border:solid black <%= panel.border %>px; background:white;">
6   <% panel.panel_pictures.each do |panel_picture| %>
7     <div id="vPicture<%= panel_picture.id -%>" class="panel_picture" style="position:relative;  top:<%= panel_picture.y -%>px; left:<%= panel_picture.x -%>px; z-index:<%= panel_picture.z -%>; ">
8       <img style=" position:absolute; width:<%= panel_picture.width -%>px; height:<%= panel_picture.height -%>px; " src="<%= panel_picture.url -%>">
9     </div>
10   <% end %>
11   <% panel.balloons.each do |balloon| %>
12     <div id="vballoon<%= balloon.id -%>" class="balloon" style="position:relative;  top:<%= balloon.y -%>px; left:<%= balloon.x -%>px; z-index:<%= balloon.z -%>; ">
13       <img style=" position:absolute; width:<%= balloon.width -%>px; height:<%= balloon.height -%>px; " src="<%= balloon.system_picture.url -%>">
14       <% balloon.speeches.each do |speech| %>
15         <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; ">
16           <%= h speech.content -%>
17         </div>
18       <% end %>
19     </div>
20   <% end %>
21 </div>
22     <%= h panel.author.name %> <%= panel.updated_at %>
23   </div>
24 <% end %>
25 <%= link_to 'open form', new_panel_path, :remote => true %>\r
26   <div id="newpanel">\r
27     uploader\r
28   </div>\r