OSDN Git Service

fix leaf view
[pettanr/pettanr.git] / app / views / comics / show.html.erb
index e0a0ef3..5947c47 100644 (file)
@@ -1,39 +1,49 @@
 <% @page_title = t('.title') + ':' + @item.title %>
-<h1><%= @item.title %></h1>
+<h1>
+  <%= link_to icon_tag('Comic'), comic_path(@item) %>
+  <%= link_to h(@item.title), play_comic_path(@item) %>
+  <%= link_to icon_tag('Prof'), comic_path(@item, :format => :prof) %>
+</h1>
+
 <p>
   <b><%= t_m 'Comic.author_id' -%>:</b>
   <%= link_to h(@item.author.name), author_path(@item.author) %>
-  <b><%= t_m 'Comic.updated_at' -%>:</b>
-  <%= l @item.updated_at %>
 </p>
 
-<p id="notice"><%= notice %></p>
-
-<p>
+<div>
   <b><%= t_m 'Comic.description' -%>:</b>
   <%= h(@item.description) %>
-</p>
+</div>
 
 <div>
-  <% @comic_stories.each do |comic_story| %>
-    <% if comic_story.story -%>
-      <%= link_to comic_story.title, play_story_path(comic_story.story) %>
-    <% end %>
-  <% end %>
+  <p>
+    <b><%= t_m 'Comic.created_at' -%>:</b>
+    <%= l @item.created_at %>
+  </p>
+  <p>
+    <b><%= t_m 'Comic.updated_at' -%>:</b>
+    <%= l @item.updated_at %>
+  </p>
+  <p>
+    <b>pages:</b>
+    <%= @play_count %>
+  </p>
 </div>
 
 <% if @item.own? @operators -%>
-<p>
-  <b><%= t_m 'Comic.visible' -%>:</b>
-  <%= t_selected_item('comic_visible_items', @item.visible) %>
-</p>
-
-  <%= link_to t('link.edit'), edit_comic_path(@item) %>
-  <%= link_to t('link.destroy'), comic_path(@item), :method => :delete %>
-  <h3><%= t('comic_stories.append.new_stories') -%></h3>
-  <table>
-    <% @new_story_items.each do |story| %>
-      <%= render 'comic_stories/append_story', :story => story, :comic => @item, :operators => @operators %>
-    <% end %>
-  </table>
+  <h3><%= t('editor') -%></h3>
+  <p id="notice"><%= notice %></p>
+  
+  <p>
+    <b><%= t_m 'Comic.visible' -%>:</b>
+    <%= t_selected_item('comic_visible_items', @item.visible) %>
+  </p>
+  <p>
+    <%= link_to t('link.edit'), edit_comic_path(@item) %>
+    <%= link_to t('link.destroy'), comic_path(@item), :method => :delete %>
+  </p>
+  
+  <div>
+    <%= link_to t('comics.show.leaf'), play_comic_path(@item, :anchor => :editor) %>
+  </div>
 <% end %>