+<% @page_title = @comic.title %>
<h1><%= t '.title' -%></h1>
+<p id="notice"><%= notice %></p>
<%= render 'comic_header', :comic => @comic, :author => @author %>
<% if @stories.empty? -%>
<h2><%= t('stories.comic.empty') %></h2>
<% else %>
<% @stories.each do |story| %>
- <%= render 'panels/body', :panel => story.panel, :author => @author %>
+ <% if story.panel -%>
+ <%= render 'panels/body', :panel => story.panel, :author => @author, :spot => nil %>
+ <% end %>
<%= render 'footer', :story => story, :author => @author %>
<% end %>
<%= render 'licensed_pictures', :licensed_pictures => Story.licensed_pictures(@stories) %>
-<% end %>
-<% if @comic.own? @author -%>
- <h3><%= t('stories.new.title') %></h3>
- <% @story = Story.new ; @story.comic_id = @comic.id ; @story.t = Story.new_t @comic.id -%>
- <%= form_for(@story) do |f| %>
- <div class="field">
- <%= f.hidden_field :comic_id %>
- </div>
- <div class="field">
- <%= f.label :t %><br />
- <%= f.number_field :t %>
- </div>
- <div class="field">
- <%= f.label :panel_id %><br />
- <%= f.number_field :panel_id %>
- </div>
+ <% if @prev_offset -%>
+ <%= link_to h('<<prev'), comic_story_path(@comic, {:offset => @prev_offset, :count => @panel_count}) %>
+ <% end %>
- <div class="actions">
- <%= f.submit %>
- </div>
+ <% if @next_offset -%>
+ <%= link_to h('next>>'), comic_story_path(@comic, {:offset => @next_offset, :count => @panel_count}) %>
<% end %>
+
+<% end %>
+<% if @comic.own? @author -%>
+ <h3><%= t('stories.comic.new_panels') -%></h3>
+ <table>
+ <% @new_panels.each do |panel| %>
+ <%= render 'append_panel', :comic => @comic, :panel => panel, :author => @author %>
+ <% end %>
+ </table>
<% end %>