OSDN Git Service

add comic story
[pettanr/pettanr.git] / app / views / stories / show.html.erb
index 6f9cc26..28f5e3a 100644 (file)
@@ -1,14 +1,8 @@
 <h1><%= t('.title') %></h1>
 <p id="notice"><%= notice %></p>
 
-<p>
-  <b><%= t_m 'Story.comic_id' -%>:</b>
-  <%= link_to comic_icon(:object => @item.comic), comic_path(@item.comic) %>
-  <%= link_to h(@item.comic.title), comic_path(@item.comic) %>
-</p>
-
 <div>
-  <%= link_to t('stories.show.t', :t => @item.disp_t), story_path(@item) %>
+  <%= link_to @item.title, story_path(@item) %>
   <%= link_to_if @item, h(@item.title), play_story_path(@item) %>
 </div>
 
   <%= link_to t('link.edit'), edit_story_path(@item) %>
   <%= link_to t('link.destroy'), story_path(@item), :method => :delete %>
 
+  <h3><%= t('comic_stories.append.new_comics') -%></h3>
+  <table>
+    <% @new_comic_items.each do |comic| %>
+      <%= render 'comic_stories/append_comic', :story => @item, :comic => comic, :operators => @operators %>
+    <% end %>
+  </table>
+
   <h3><%= t('story_sheets.append.new_sheets') -%></h3>
   <table>
     <% @new_sheet_items.each do |sheet| %>