OSDN Git Service

fix leaf view
[pettanr/pettanr.git] / app / views / comics / show.html.erb
1 <% @page_title = t('.title') + ':' + @item.title %>
2 <h1>
3   <%= link_to icon_tag('Comic'), comic_path(@item) %>
4   <%= link_to h(@item.title), play_comic_path(@item) %>
5   <%= link_to icon_tag('Prof'), comic_path(@item, :format => :prof) %>
6 </h1>
7
8 <p>
9   <b><%= t_m 'Comic.author_id' -%>:</b>
10   <%= link_to h(@item.author.name), author_path(@item.author) %>
11 </p>
12
13 <div>
14   <b><%= t_m 'Comic.description' -%>:</b>
15   <%= h(@item.description) %>
16 </div>
17
18 <div>
19   <p>
20     <b><%= t_m 'Comic.created_at' -%>:</b>
21     <%= l @item.created_at %>
22   </p>
23   <p>
24     <b><%= t_m 'Comic.updated_at' -%>:</b>
25     <%= l @item.updated_at %>
26   </p>
27   <p>
28     <b>pages:</b>
29     <%= @play_count %>
30   </p>
31 </div>
32
33 <% if @item.own? @operators -%>
34   <h3><%= t('editor') -%></h3>
35   <p id="notice"><%= notice %></p>
36   
37   <p>
38     <b><%= t_m 'Comic.visible' -%>:</b>
39     <%= t_selected_item('comic_visible_items', @item.visible) %>
40   </p>
41   <p>
42     <%= link_to t('link.edit'), edit_comic_path(@item) %>
43     <%= link_to t('link.destroy'), comic_path(@item), :method => :delete %>
44   </p>
45   
46   <div>
47     <%= link_to t('comics.show.leaf'), play_comic_path(@item, :anchor => :editor) %>
48   </div>
49 <% end %>