OSDN Git Service

fix mani
[pettanr/pettanr.git] / app / views / stories / show.html.erb
1 <h1><%= t('.title') %></h1>
2 <p id="notice"><%= notice %></p>
3
4 <p>
5   <b><%= t_m 'Story.comic_id' -%>:</b>
6   <%= link_to comic_icon(:object => @item.comic), comic_path(@item.comic) %>
7   <%= link_to h(@item.comic.title), comic_path(@item.comic) %>
8 </p>
9
10 <div>
11   <%= link_to t('stories.show.t', :t => @item.disp_t), story_path(@item) %>
12   <%= link_to_if @item, h(@item.title), play_story_path(@item) %>
13 </div>
14
15 <p>
16   <b><%= t_m 'Story.description' -%>:</b>
17   <%= h(@item.description) %>
18 </p>
19
20 <p>
21   <b><%= t_m 'Story.visible' -%>:</b>
22   <%= t_selected_item('story_visible_items', @item.visible) %>
23 </p>
24
25 <p>
26   <b><%= t_m 'Story.created_at' -%>:</b>
27   <%= l @item.created_at %>
28 </p>
29
30 <p>
31   <b><%= t_m 'Story.updated_at' -%>:</b>
32   <%= l @item.updated_at %>
33 </p>
34 <% @item.story_sheets.each do |story_sheet| %>
35   <% if story_sheet.sheet and story_sheet.sheet.visible?(@operators) -%>
36     <div>
37       <%= link_to sheet_icon(:object => story_sheet.sheet, :size => 25), sheet_path(story_sheet.sheet) %>
38       <%= link_to h(truncate(story_sheet.sheet.caption, :length => 40)), play_sheet_path(story_sheet.sheet) %>
39       (<%= story_sheet.sheet.sheet_panels.size -%>)
40     </div>
41   <% end %>
42 <% end %>
43 <% if @item.own? @operators -%>
44   <%= link_to t('link.edit'), edit_story_path(@item) %>
45   <%= link_to t('link.destroy'), story_path(@item), :method => :delete %>
46
47   <h3><%= t('story_sheets.append.new_sheets') -%></h3>
48   <table>
49     <% @new_sheet_items.each do |sheet| %>
50       <%= render 'story_sheets/append_sheet', :story => @item, :sheet => sheet, :operators => @operators %>
51     <% end %>
52   </table>
53 <% end %>