Bug hint
This commit is contained in:
parent
77d8daedea
commit
2c67e321ba
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ class PackagesController < ApplicationController
|
|||
# first image twice as large. So the first page contains 5 images while
|
||||
# the second and further page contain 6 images.
|
||||
@page = params[:page]
|
||||
# BUG: having page 1 with 5 and other with 6 items does not compute correctly
|
||||
@images_per_page = if @page.to_i < 2
|
||||
5
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue