X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fviews%2Fpanels%2Fshow.html.erb;h=5281f15ecc566a61bed3cadb098bebf9928c73e4;hb=1eaf2b5999b0abd4caddfb85e706d627a1205338;hp=f6222f01b2d4e2347f47837b0b5a0f8234ea76a0;hpb=a4c744c11df4f274b702045ccaa7a0c7c4629716;p=pettanr%2Fpettanr.git diff --git a/app/views/panels/show.html.erb b/app/views/panels/show.html.erb index f6222f01..5281f15e 100644 --- a/app/views/panels/show.html.erb +++ b/app/views/panels/show.html.erb @@ -1,46 +1,44 @@ -

<%= t '.title' -%>

-

<%= notice %>

-<%= render 'standard', :panel => @panel, :operators => @operators %> +

+ <%= link_to icon_tag('Panel'), panel_path(@item) %> + <%= link_to h(@item.caption), panel_path(@item) %> + <%= link_to icon_tag('Prof'), panel_path(@item, :format => :prof) %> +

+<%= render 'standard', :panel => @item, :operators => @operators %> -<% if @panel.own? @operators %> - <%= link_to t('link.edit'), edit_panel_path(@panel) %> - <%= link_to t('link.destroy'), panel_path(@panel), :method => :delete %> - <%= link_to t('link.catch'), catch_panel_path(@panel) %> -<% end %> - - -<% if @operators.author %> -

<%= t('panels.show.copy') -%>

- <%= form_for(Panel.new, :html => {:jqform => 'pettanr-panel-form'}) do |f| %> - - <%= hidden_field_tag "json", @panel.post_attributes(:all).to_json %> -
- <%= submit_tag t('panels.show.inspire') -%> -
- <% end %> +<% if @item.own? @operators %> +

<%= t('editor') -%>

+

<%= notice %>

+ +

+ <%= t_m 'Panel.publish' -%>: + <%= t_selected_item('panel_visible_items', @item.publish) %> +

+

+ <%= link_to t('link.edit'), edit_panel_path(@item) %> + <%= link_to t('link.destroy'), panel_path(@item), :method => :delete %> +

<%= t('scroll_panels.append.new_scrolls') -%>

<% @new_scroll_items.each do |scroll| %> - <%= render 'scroll_panels/append_scroll', :panel => @panel, :scroll => scroll, :operators => @operators %> + <%= render 'scroll_panels/append_scroll', :panel => @item, :scroll => scroll, :operators => @operators %> <% end %>

<%= t('scroll_panels.append.fresh_scrolls') -%>

<% @fresh_scroll_items.each do |scroll| %> - <%= render 'scroll_panels/append_scroll', :panel => @panel, :scroll => scroll, :operators => @operators %> - <% end %> -
-

<%= t('sheet_panels.append.new_sheets') -%>

- - <% @new_sheet_items.each do |sheet| %> - <%= render 'sheet_panels/append_sheet', :panel => @panel, :sheet => sheet, :operators => @operators %> - <% end %> -
-

<%= t('sheet_panels.append.fresh_sheets') -%>

- - <% @fresh_sheet_items.each do |sheet| %> - <%= render 'sheet_panels/append_sheet', :panel => @panel, :sheet => sheet, :operators => @operators %> + <%= render 'scroll_panels/append_scroll', :panel => @item, :scroll => scroll, :operators => @operators %> <% end %>
<% end %> + +<% if @operators.author %> +

<%= t('panels.show.copy') -%>

+ <%= form_for(Panel.new, :html => {:jqform => 'pettanr-panel-form'}) do |f| %> + + <%= hidden_field_tag "json", @item.post_attributes(:all).to_json %> +
+ <%= submit_tag t('panels.show.inspire') -%> +
+ <% end %> +<% end %>