OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / views / stories / show.html.erb
1 <h1>
2   <%= link_to icon_tag('Story'), story_path(@item) %>
3   <%= link_to h(@item.title), play_story_path(@item) %>
4   <%= link_to icon_tag('Prof'), story_path(@item, :format => :prof) %>
5 </h1>
6
7 <p>
8   <b><%= t_m 'Story.author_id' -%>:</b>
9   <%= link_to h(@item.author.name), author_path(@item.author) %>
10 </p>
11
12 <div>
13   <b><%= t_m 'Story.description' -%>:</b>
14   <%= h(@item.description) %>
15 </div>
16
17 <div>
18   <p>
19     <b><%= t_m 'Story.created_at' -%>:</b>
20     <%= l @item.created_at %>
21   </p>
22   <p>
23     <b><%= t_m 'Story.updated_at' -%>:</b>
24     <%= l @item.updated_at %>
25   </p>
26   <p>
27     <b>pages:</b>
28     <%= @play_count %>
29   </p>
30 </div>
31
32 <% if @item.own? @operators -%>
33   <h3><%= t('editor') -%></h3>
34   <p id="notice"><%= notice %></p>
35   <p>
36     <b><%= t_m 'Story.visible' -%>:</b>
37     <%= t_selected_item('story_visible_items', @item.visible) %>
38   </p>
39   <p>
40     <%= link_to t('link.edit'), edit_story_path(@item) %>
41     <%= link_to t('link.destroy'), story_path(@item), :method => :delete %>
42   </p>
43   <div>
44     <%= link_to t('stories.show.leaf'), play_story_path(@item, :anchor => :editor) %>
45   </div>
46 <% end %>