OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / story_sheets / show.html.erb
diff --git a/app/views/story_sheets/show.html.erb b/app/views/story_sheets/show.html.erb
new file mode 100644 (file)
index 0000000..c21cf12
--- /dev/null
@@ -0,0 +1,39 @@
+<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b><%= t_m 'StorySheet.story_id' -%>:</b>
+  <%= link_to story_icon(:object => @story_sheet.story), story_path(@story_sheet.story) %>
+  <%= link_to h(@story_sheet.story.title), play_story_path(@story_sheet.story) %>
+</p>
+
+<p>
+  <b><%= t_m 'StorySheet.sheet_id' -%>:</b>
+  <%= link_to sheet_icon(:object => @story_sheet.sheet), sheet_path(@story_sheet.sheet) %>
+</p>
+
+<p>
+  <b><%= t_m 'StorySheet.t' -%>:</b>
+  <%= @story_sheet.t %>
+</p>
+
+<p>
+  <b><%= t_m 'StorySheet.author_id' -%>:</b>
+  <%= link_to author_icon(:object => @story_sheet.author), author_path(@story_sheet.author) %>
+  <%= link_to h(@story_sheet.author.name), author_path(@story_sheet.author) %>
+</p>
+
+<p>
+  <b><%= t_m 'StorySheet.created_at' -%>:</b>
+  <%= l @story_sheet.created_at %>
+</p>
+
+<p>
+  <b><%= t_m 'StorySheet.updated_at' -%>:</b>
+  <%= l @story_sheet.updated_at %>
+</p>
+<% if @story_sheet.own? @author -%>
+  <%= link_to t('link.edit'), edit_story_sheet_path(@story_sheet) %>
+  <%= link_to t('link.destroy'), story_sheet_path(@story_sheet), :method => :delete %>
+<% end %>
+