OSDN Git Service

t#31725:add panel inspire
[pettanr/pettanr.git] / app / views / panels / show.html.erb
1 <h1><%= t '.title' -%></h1>
2 <p id="notice"><%= notice %></p>
3 <%= render 'standard', :panel => @panel, :author => @author %>
4
5 <%= link_to t('link.edit'), edit_panel_path(@panel) %>
6 <%= link_to t('link.destroy'), panel_path(@panel), :method => :delete %>
7 <%= link_to t('link.catch'), catch_panel_path(@panel) %>
8
9 <h2><%= t('panels.show.new_comics') -%></h2>
10 <table>
11   <% @new_comics.each do |comic| %>
12     <%= render 'append_comic', :panel => @panel, :comic => comic, :author => @author %>
13   <% end %>
14 </table>
15 <h2><%= t('panels.show.fresh_comics') -%></h2>
16 <table>
17   <% @fresh_comics.each do |comic| %>
18     <%= render 'append_comic', :panel => @panel, :comic => comic, :author => @author %>
19   <% end %>
20 </table>
21 <h2><%= t('panels.show.copy') -%></h2>
22 <%= form_for(Panel.new, :html => {:jqform => 'pettanr-panel-form'}) do |f| %>
23
24   <%= hidden_field_tag "json", @panel.copy(@author).to_json %>
25   <div>
26     <%= submit_tag t('panels.show.inspire') -%>
27   </div>
28 <% end %>