OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / stories / show.html.erb
index fa0c3a0..73b5cb3 100644 (file)
@@ -4,17 +4,22 @@
 <p>
   <b><%= t_m 'Story.comic_id' -%>:</b>
   <%= link_to comic_icon(:object => @story.comic), comic_path(@story.comic) %>
-  <%= link_to h(@story.comic.title), :controller => 'stories', :action => :comic, :id => @story.comic.id %>
+  <%= link_to h(@story.comic.title), comic_path(@story.comic) %>
 </p>
 
+<div>
+  <%= link_to t('stories.show.t', :t => @story.disp_t), story_path(@story) %>
+  <%= link_to_if @story, h(@story.title), play_story_path(@story) %>
+</div>
+
 <p>
-  <b><%= t_m 'Story.panel_id' -%>:</b>
-  <%= link_to panel_icon(:object => @story.panel), panel_path(@story.panel) %>
+  <b><%= t_m 'Story.description' -%>:</b>
+  <%= h(@story.description) %>
 </p>
 
 <p>
-  <b><%= t_m 'Story.t' -%>:</b>
-  <%= @story.t %>
+  <b><%= t_m 'Story.visible' -%>:</b>
+  <%= t_selected_item('story_visible_items', @story.visible) %>
 </p>
 
 <p>
 <% if @story.own? @author -%>
   <%= link_to t('link.edit'), edit_story_path(@story) %>
   <%= link_to t('link.destroy'), story_path(@story), :method => :delete %>
-<% end %>
 
-<hr>
-<%= render 'panels/standard', :panel => @story.panel, :author => @author %>
+  <h3><%= t('story_sheets.append.new_sheets') -%></h3>
+  <table>
+    <% @new_sheets.each do |sheet| %>
+      <%= render 'story_sheets/append_sheet', :story => @story, :sheet => sheet, :author => @author %>
+    <% end %>
+  </table>
+<% end %>