OSDN Git Service

work
[pettanr/pettanr.git] / app / views / stories / show.html.erb
index ad03496..6f9cc26 100644 (file)
@@ -3,36 +3,36 @@
 
 <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), comic_path(@story.comic) %>
+  <%= 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 => @story.disp_t), story_path(@story) %>
-  <%= link_to_if @story, h(@story.title), play_story_path(@story) %>
+  <%= link_to t('stories.show.t', :t => @item.disp_t), story_path(@item) %>
+  <%= link_to_if @item, h(@item.title), play_story_path(@item) %>
 </div>
 
 <p>
   <b><%= t_m 'Story.description' -%>:</b>
-  <%= h(@story.description) %>
+  <%= h(@item.description) %>
 </p>
 
 <p>
   <b><%= t_m 'Story.visible' -%>:</b>
-  <%= t_selected_item('story_visible_items', @story.visible) %>
+  <%= t_selected_item('story_visible_items', @item.visible) %>
 </p>
 
 <p>
   <b><%= t_m 'Story.created_at' -%>:</b>
-  <%= l @story.created_at %>
+  <%= l @item.created_at %>
 </p>
 
 <p>
   <b><%= t_m 'Story.updated_at' -%>:</b>
-  <%= l @story.updated_at %>
+  <%= l @item.updated_at %>
 </p>
-<% @story.story_sheets.each do |story_sheet| %>
-  <% if story_sheet.sheet and story_sheet.sheet.visible?(@author) -%>
+<% @item.story_sheets.each do |story_sheet| %>
+  <% if story_sheet.sheet and story_sheet.sheet.visible?(@operators) -%>
     <div>
       <%= link_to sheet_icon(:object => story_sheet.sheet, :size => 25), sheet_path(story_sheet.sheet) %>
       <%= link_to h(truncate(story_sheet.sheet.caption, :length => 40)), play_sheet_path(story_sheet.sheet) %>
     </div>
   <% end %>
 <% end %>
-<% if @story.own? @author -%>
-  <%= link_to t('link.edit'), edit_story_path(@story) %>
-  <%= link_to t('link.destroy'), story_path(@story), :method => :delete %>
+<% if @item.own? @operators -%>
+  <%= link_to t('link.edit'), edit_story_path(@item) %>
+  <%= link_to t('link.destroy'), story_path(@item), :method => :delete %>
 
   <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 %>
+    <% @new_sheet_items.each do |sheet| %>
+      <%= render 'story_sheets/append_sheet', :story => @item, :sheet => sheet, :operators => @operators %>
     <% end %>
   </table>
 <% end %>