OSDN Git Service

t#32025:comic rename
[pettanr/pettanr.git] / app / views / scroll_panels / _scroll_header.html.erb
index d1eb9e7..a176605 100644 (file)
@@ -1,16 +1,16 @@
 <h1>
-  <%= link_to comic_icon, comic_path(comic) %>
-  <%= link_to h(comic.title), :controller => 'stories', :action => :comic, :id => comic.id %>
+  <%= link_to scroll_icon, scroll_path(scroll) %>
+  <%= link_to h(scroll.title), :controller => 'scroll_panels', :action => :scroll, :id => scroll.id %>
 </h1>
-<% if comic.own? author -%>
-  <%= form_for(comic) do |f| %>
+<% if scroll.own? author -%>
+  <%= form_for(scroll) do |f| %>
     <div class="field">
       <%= f.label :title %><br />
       <%= f.text_field :title %>
     </div>
     <div class="field">
       <%= f.label :visible %><br />
-      <%= f.collection_select :visible, t_select_items(MagicNumber['comic_visible_items']), :last, :first, :html => {:selected => @comic.visible} %>
+      <%= f.collection_select :visible, t_select_items(MagicNumber['scroll_visible_items']), :last, :first, :html => {:selected => @scroll.visible} %>
     </div>
     <div class="actions">
       <%= f.submit %>
   <% end %>
 <% else %>
   <p>
-    <b><%= t_m 'Comic.visible' -%>:</b>
-    <%= t_selected_item('comic_visible_items', @comic.visible) %>
+    <b><%= t_m 'Scroll.visible' -%>:</b>
+    <%= t_selected_item('scroll_visible_items', @scroll.visible) %>
   </p>
 <% end %>
 
 <p>
-  <b><%= t_m 'Comic.author_id' -%>:</b>
-  <%= link_to h(@comic.author.name), author_path(@comic.author) %>
+  <b><%= t_m 'Scroll.author_id' -%>:</b>
+  <%= link_to h(@scroll.author.name), author_path(@scroll.author) %>
 </p>
 
 <p>
-  <b><%= t_m 'Comic.created_at' -%>:</b>
-  <%= l @comic.created_at %>
+  <b><%= t_m 'Scroll.created_at' -%>:</b>
+  <%= l @scroll.created_at %>
 </p>
 
 <p>
-  <b><%= t_m 'Comic.updated_at' -%>:</b>
-  <%= l @comic.updated_at %>
+  <b><%= t_m 'Scroll.updated_at' -%>:</b>
+  <%= l @scroll.updated_at %>
 </p>