-<% @page_title = @comic.title %>
+<% @page_title = @scroll.title %>
<h1><%= t '.title' -%></h1>
<p id="notice"><%= notice %></p>
-<%= render 'comic_header', :comic => @comic, :author => @author %>
+<%= render 'scroll_header', :scroll => @scroll, :author => @author %>
-<% if @stories.empty? -%>
- <h2><%= t('stories.comic.empty') %></h2>
+<% if @scroll_panels.empty? -%>
+ <h2><%= t('scroll_panels.scroll.empty') %></h2>
<% else %>
- <% @stories.each do |story| %>
- <% if story.panel -%>
- <%= render 'panels/body', :panel => story.panel, :author => @author, :spot => nil %>
+ <% @scroll_panels.each do |scroll_panel| %>
+ <% if scroll_panel.panel -%>
+ <%= render 'panels/body', :panel => scroll_panel.panel, :author => @author, :spot => nil %>
<% end %>
- <%= render 'footer', :story => story, :author => @author %>
+ <%= render 'footer', :scroll_panel => scroll_panel, :author => @author %>
<% end %>
- <%= render 'licensed_pictures', :licensed_pictures => Story.licensed_pictures(@stories) %>
+ <%= render 'licensed_pictures', :licensed_pictures => ScrollPanel.licensed_pictures(@scroll_panels) %>
<% if @prev_offset -%>
- <%= link_to h('<<prev'), comic_story_path(@comic, {:offset => @prev_offset, :count => @panel_count}) %>
+ <%= link_to h('<<prev'), scroll_scroll_panel_path(@scroll, {:offset => @prev_offset, :count => @panel_count}) %>
<% end %>
<% if @next_offset -%>
- <%= link_to h('next>>'), comic_story_path(@comic, {:offset => @next_offset, :count => @panel_count}) %>
+ <%= link_to h('next>>'), scroll_scroll_panel_path(@scroll, {:offset => @next_offset, :count => @panel_count}) %>
<% end %>
<% end %>
-<% if @comic.own? @author -%>
- <h3><%= t('stories.comic.new_panels') -%></h3>
+<% if @scroll.own? @author -%>
+ <h3><%= t('scroll_panels.scroll.new_panels') -%></h3>
<table>
<% @new_panels.each do |panel| %>
- <%= render 'append_panel', :comic => @comic, :panel => panel, :author => @author %>
+ <%= render 'append_panel', :scroll => @scroll, :panel => panel, :author => @author %>
<% end %>
</table>
<% end %>