-<h1>Listing panels</h1>
-
-<table>
- <tr>
- <th>id</th>
- <th>Comic</th>
- <th>bg</th>
- <th>Width</th>
- <th>Height</th>
- <th>Border</th>
- <th>Seqno</th>
- <th>author_id</th>
- <th>updated_at</th>
- <th></th>
- <th></th>
- </tr>
-
-<% @panels.each do |panel| %>
- <tr>
- <td><%= panel.id %></td>
- <td><%= panel.comic_id %></td>
- <td><%= panel.resource_picture_id %></td>
- <td><%= panel.width %></td>
- <td><%= panel.height %></td>
- <td><%= panel.border %></td>
- <td><%= panel.seqno %></td>
- <td><%= panel.author_id %></td>
- <td><%= panel.updated_at %></td>
- <td><%= link_to 'Show', panel %></td>
- <td>
- <% if author_signed_in? -%>
- <% if panel.own? current_author -%>
- <%= link_to 'Destroy', panel, confirm: 'Are you sure?', method: :delete %>
- <% end -%>
- <% end -%>
- </td>
- </tr>
+<% if @items.empty? -%>
+ <h2><%= t('panels.empty') %></h2>
+<% else %>
+ <h2><%= link_to t('panels.filer'), main_app.panels_path(:mode => 'filer', :page => params[:page], :page_size => params[:page_size]) %></h2>
+ <%= paginate(@pager) %>
+ <% @items.each do |panel| %>
+ <%= render 'body', :panel => panel, :operators => @operators, :spot => nil %>
+ <%= render 'panels/footer', :panel => panel, :operators => @operators %>
+ <% end %>
+ <%= render 'panels/licensed_pictures', :licensed_pictures => Panel.licensed_pictures(@items) %>
+ <%= paginate(@pager) %>
<% end %>
-</table>