OSDN Git Service

d525d63100fd039359c6f48afff302af049a0276
[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 => @story.comic), comic_path(@story.comic) %>
7   <%= link_to h(@story.comic.title), comic_path(@story.comic) %>
8 </p>
9
10 <div>
11   <%= link_to t('stories.show.t', :t => @story.disp_t), story_path(@story) %>
12   <%= link_to_if @story, h(@story.title), play_story_path(@story) %>
13 </div>
14
15 <p>
16   <b><%= t_m 'Story.description' -%>:</b>
17   <%= h(@story.description) %>
18 </p>
19
20 <p>
21   <b><%= t_m 'Story.visible' -%>:</b>
22   <%= t_selected_item('story_visible_items', @story.visible) %>
23 </p>
24
25 <p>
26   <b><%= t_m 'Story.created_at' -%>:</b>
27   <%= l @story.created_at %>
28 </p>
29
30 <p>
31   <b><%= t_m 'Story.updated_at' -%>:</b>
32   <%= l @story.updated_at %>
33 </p>
34 <% if @story.own? @author -%>
35   <%= link_to t('link.edit'), edit_story_path(@story) %>
36   <%= link_to t('link.destroy'), story_path(@story), :method => :delete %>
37
38   <h3><%= t('story_sheets.append.new_sheets') -%></h3>
39   <table>
40     <% @new_sheets.each do |sheet| %>
41       <%= render 'story_sheets/append_sheet', :story => @story, :sheet => sheet, :author => @author %>
42     <% end %>
43   </table>
44 <% end %>