added pagination
This commit is contained in:
parent
52278526e8
commit
f4396805e9
|
@ -10,7 +10,8 @@ class GalleriesController < ApplicationController
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"albums" => albums,
|
"albums" => albums,
|
||||||
"extras" => {"widget-title"=>"Gallery"}
|
"extras" => {"widget-title"=>"Gallery"},
|
||||||
|
"total_pages" => albums.total_pages
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue