OSDN Git Service

t#32025:comic rename
[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 <% if @panel.own? @author %>
6   <%= link_to t('link.edit'), edit_panel_path(@panel) %>
7   <%= link_to t('link.destroy'), panel_path(@panel), :method => :delete %>
8   <%= link_to t('link.catch'), catch_panel_path(@panel) %>
9 <% end %>
10
11
12 <% if @author %>
13   <h2><%= t('panels.show.new_scrolls') -%></h2>
14   <table>
15     <% @new_scrolls.each do |scroll| %>
16       <%= render 'append_scroll', :panel => @panel, :scroll => scroll, :author => @author %>
17     <% end %>
18   </table>
19   <h2><%= t('panels.show.fresh_scrolls') -%></h2>
20   <table>
21     <% @fresh_scrolls.each do |scroll| %>
22       <%= render 'append_scroll', :panel => @panel, :scroll => scroll, :author => @author %>
23     <% end %>
24   </table>
25   <h2><%= t('panels.show.copy') -%></h2>
26   <%= form_for(Panel.new, :html => {:jqform => 'pettanr-panel-form'}) do |f| %>
27
28     <%= hidden_field_tag "json", @panel.copy().to_json %>
29     <div>
30       <%= submit_tag t('panels.show.inspire') -%>
31     </div>
32   <% end %>
33 <% end %>