OSDN Git Service

fix leaf view
[pettanr/pettanr.git] / app / views / stories / show.html.erb
index b96749e..2f58cfc 100644 (file)
@@ -4,6 +4,11 @@
   <%= link_to icon_tag('Prof'), story_path(@item, :format => :prof) %>
 </h1>
 
+<p>
+  <b><%= t_m 'Story.author_id' -%>:</b>
+  <%= link_to h(@item.author.name), author_path(@item.author) %>
+</p>
+
 <div>
   <b><%= t_m 'Story.description' -%>:</b>
   <%= h(@item.description) %>
     <b><%= t_m 'Story.created_at' -%>:</b>
     <%= l @item.created_at %>
   </p>
-
   <p>
     <b><%= t_m 'Story.updated_at' -%>:</b>
     <%= l @item.updated_at %>
   </p>
-
   <p>
     <b>pages:</b>
     <%= @play_count %>
 </div>
 
 <% if @item.own? @operators -%>
+  <h3><%= t('editor') -%></h3>
   <p id="notice"><%= notice %></p>
   <p>
     <b><%= t_m 'Story.visible' -%>:</b>
     <%= t_selected_item('story_visible_items', @item.visible) %>
   </p>
-
-  <%= 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>
-
+  <p>
+    <%= link_to t('link.edit'), edit_story_path(@item) %>
+    <%= link_to t('link.destroy'), story_path(@item), :method => :delete %>
+  </p>
+  <div>
+    <%= link_to t('stories.show.leaf'), play_story_path(@item, :anchor => :editor) %>
+  </div>
 <% end %>