X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fviews%2Fstories%2Fshow.html.erb;h=b96749ebc36ad2f44f91fead5ced5ea7ca03231c;hb=2da8bab7a36eb0ca1df4ca0dc1a25db928561be8;hp=28f5e3af09c1a4d7d7acd5d6ccf73064e335afa6;hpb=f2201d3750a46b2ace05fef4c61eee3e6c9156f5;p=pettanr%2Fpettanr.git diff --git a/app/views/stories/show.html.erb b/app/views/stories/show.html.erb index 28f5e3af..b96749eb 100644 --- a/app/views/stories/show.html.erb +++ b/app/views/stories/show.html.erb @@ -1,40 +1,38 @@ -

<%= t('.title') %>

-

<%= notice %>

+

+ <%= link_to icon_tag('Story'), story_path(@item) %> + <%= link_to h(@item.title), play_story_path(@item) %> + <%= link_to icon_tag('Prof'), story_path(@item, :format => :prof) %> +

- <%= link_to @item.title, story_path(@item) %> - <%= link_to_if @item, h(@item.title), play_story_path(@item) %> -
- -

<%= t_m 'Story.description' -%>: <%= h(@item.description) %> -

- -

- <%= t_m 'Story.visible' -%>: - <%= t_selected_item('story_visible_items', @item.visible) %> -

- -

- <%= t_m 'Story.created_at' -%>: - <%= l @item.created_at %> -

- -

- <%= t_m 'Story.updated_at' -%>: - <%= l @item.updated_at %> -

-<% @item.story_sheets.each do |story_sheet| %> - <% if story_sheet.sheet and story_sheet.sheet.visible?(@operators) -%> -
- <%= link_to sheet_icon(:object => story_sheet.sheet, :size => 25), sheet_path(story_sheet.sheet) %> - <%= link_to h(truncate(story_sheet.sheet.caption, :length => 40)), play_sheet_path(story_sheet.sheet) %> - (<%= story_sheet.sheet.sheet_panels.size -%>) -
- <% end %> -<% end %> + + +
+

+ <%= t_m 'Story.created_at' -%>: + <%= l @item.created_at %> +

+ +

+ <%= t_m 'Story.updated_at' -%>: + <%= l @item.updated_at %> +

+ +

+ pages: + <%= @play_count %> +

+
+ <% if @item.own? @operators -%> +

<%= notice %>

+

+ <%= t_m 'Story.visible' -%>: + <%= t_selected_item('story_visible_items', @item.visible) %> +

+ <%= link_to t('link.edit'), edit_story_path(@item) %> <%= link_to t('link.destroy'), story_path(@item), :method => :delete %> @@ -45,10 +43,4 @@ <% end %> -

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

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