OSDN Git Service

clean
[pettanr/pettanr.git] / app / views / panels / show.html.erb
1 <h1>
2   <%= link_to icon_tag('Panel'), panel_path(@item) %>
3   <%= link_to h(@item.caption), panel_path(@item) %>
4   <%= link_to icon_tag('Prof'), panel_path(@item, :format => :prof) %>
5 </h1>
6 <%= render 'standard', :panel => @item, :operators => @operators %>
7
8 <% if @item.own? @operators %>
9   <h3><%= t('editor') -%></h3>
10   <p id="notice"><%= notice %></p>
11   
12   <p>
13     <b><%= t_m 'Panel.publish' -%>:</b>
14     <%= t_selected_item('panel_visible_items', @item.publish) %>
15   </p>
16   <p>
17     <%= link_to t('link.edit'), edit_panel_path(@item) %>
18     <%= link_to t('link.destroy'), panel_path(@item), :method => :delete %>
19   </p>
20   
21   <h2><%= t('scroll_panels.append.new_scrolls') -%></h2>
22   <table>
23     <% @new_scroll_items.each do |scroll| %>
24       <%= render 'scroll_panels/append_scroll', :panel => @item, :scroll => scroll, :operators => @operators %>
25     <% end %>
26   </table>
27   <h2><%= t('scroll_panels.append.fresh_scrolls') -%></h2>
28   <table>
29     <% @fresh_scroll_items.each do |scroll| %>
30       <%= render 'scroll_panels/append_scroll', :panel => @item, :scroll => scroll, :operators => @operators %>
31     <% end %>
32   </table>
33 <% end %>
34
35 <% if @operators.author %>
36   <h2><%= t('panels.show.copy') -%></h2>
37   <%= form_for(Panel.new, :html => {:jqform => 'pettanr-panel-form'}) do |f| %>
38
39     <%= hidden_field_tag "json", @item.post_attributes(:all).to_json %>
40     <div>
41       <%= submit_tag t('panels.show.inspire') -%>
42     </div>
43   <% end %>
44 <% end %>