OSDN Git Service

t#32046:
[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), :controller => 'stories', :action => :comic, :id => @story.comic.id %>
8 </p>
9
10 <p>
11   <b><%= t_m 'Story.panel_id' -%>:</b>
12   <%= link_to panel_icon(:object => @story.panel), panel_path(@story.panel) %>
13 </p>
14
15 <p>
16   <b><%= t_m 'Story.t' -%>:</b>
17   <%= @story.t %>
18 </p>
19
20 <p>
21   <b><%= t_m 'Story.author_id' -%>:</b>
22   <%= link_to author_icon(:object => @story.author), author_path(@story.author) %>
23   <%= link_to h(@story.author.name), author_path(@story.author) %>
24 </p>
25
26 <p>
27   <b><%= t_m 'Story.created_at' -%>:</b>
28   <%= l @story.created_at %>
29 </p>
30
31 <p>
32   <b><%= t_m 'Story.updated_at' -%>:</b>
33   <%= l @story.updated_at %>
34 </p>
35 <% if @story.own? @author -%>
36   <%= link_to t('link.edit'), edit_story_path(@story) %>
37   <%= link_to t('link.destroy'), story_path(@story), :method => :delete %>
38 <% end %>
39
40 <hr>
41 <%= render 'panels/standard', :panel => @story.panel, :author => @author %>