OSDN Git Service

temp
[pettanr/pettanr.git] / app / views / comics / show.html.erb
1 <% @page_title = t('.title') + ':' + @comic.title %>
2 <h1><%= t('.title') %></h1>
3 <p id="notice"><%= notice %></p>
4
5 <p>
6   <b><%= t_m 'Comic.title' -%>:</b>
7   <%= link_to h(@comic.title), comic_path(@comic) %>
8 </p>
9
10 <p>
11   <b><%= t_m 'Comic.description' -%>:</b>
12   <%= h(@comic.description) %>
13 </p>
14
15 <p>
16   <b><%= t_m 'Comic.visible' -%>:</b>
17   <%= t_selected_item('comic_visible_items', @comic.visible) %>
18 </p>
19
20 <p>
21   <b><%= t_m 'Comic.author_id' -%>:</b>
22   <%= link_to h(@comic.author.name), author_path(@comic.author) %>
23 </p>
24
25 <% @comic.stories.each do |story| %>
26   <% if story.visible? @author -%>
27     <div>
28       <%= link_to t('stories.show.t', :t => story.disp_t), story_path(story) %>
29       <%= link_to h(story.title), play_story_path(story) %>
30     </div>
31   <% end %>
32 <% end %>
33 <p>
34   <b><%= t_m 'Comic.created_at' -%>:</b>
35   <%= l @comic.created_at %>
36 </p>
37
38 <p>
39   <b><%= t_m 'Comic.updated_at' -%>:</b>
40   <%= l @comic.updated_at %>
41 </p>
42
43 <% if @comic.own? @operators -%>
44   <%= link_to t('link.edit'), edit_comic_path(@comic) %>
45   <%= link_to t('link.destroy'), comic_path(@comic), :method => :delete %>
46
47   <h2>
48     <%= t('stories.index.new') %>
49   </h2>
50   <% @story = Story.new -%>
51   <% @story.supply_default -%>
52   <% @story.attributes = {:comic_id => @comic.id} -%>
53   <%= render 'stories/form' %>
54 <% end %>