OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / stories / _comic_header.html.erb
1 <h1>
2   <%= link_to comic_icon, comic_path(comic) %>
3   <%= link_to h(comic.title), :controller => 'stories', :action => :comic, :id => comic.id %>
4 </h1>
5 <% if comic.own? author -%>
6   <%= form_for(comic) do |f| %>
7     <div class="field">
8       <%= f.label :title %><br />
9       <%= f.text_field :title %>
10     </div>
11     <div class="field">
12       <%= f.label :visible %><br />
13       <%= f.collection_select :visible, t_select_items(MagicNumber['comic_visible_items']), :last, :first, :html => {:selected => @comic.visible} %>
14     </div>
15     <div class="actions">
16       <%= f.submit %>
17     </div>
18   <% end %>
19 <% else %>
20   <p>
21     <b><%= t_m 'Comic.visible' -%>:</b>
22     <%= t_selected_item('comic_visible_items', @comic.visible) %>
23   </p>
24 <% end %>
25
26 <p>
27   <b><%= t_m 'Comic.author_id' -%>:</b>
28   <%= link_to h(@comic.author.name), author_path(@comic.author) %>
29 </p>
30
31 <p>
32   <b><%= t_m 'Comic.created_at' -%>:</b>
33   <%= l @comic.created_at %>
34 </p>
35
36 <p>
37   <b><%= t_m 'Comic.updated_at' -%>:</b>
38   <%= l @comic.updated_at %>
39 </p>
40