This commit is contained in:
Christoph Haas 2020-10-30 15:03:11 +01:00
parent 77d8daedea
commit 2c67e321ba

View file

@ -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