OSDN Git Service

t#31521:fix story pager
[pettanr/pettanr.git] / app / views / stories / comic.html.erb
index 82dbb4b..631f6f0 100644 (file)
@@ -8,11 +8,20 @@
 <% else %>
   <% @stories.each do |story| %>
     <% if story.panel -%>
-      <%= render 'panels/body', :panel => story.panel, :author => @author %>
+      <%= 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) %>
+
+  <% if @prev_offset -%>
+    <%= link_to h('<<prev'), comic_story_path(@comic, {:offset => @prev_offset, :count => @panel_count}) %>
+  <% end %>
+
+  <% 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>