added total_pages for frontend pagination
This commit is contained in:
parent
cfa22fb49c
commit
8a7e96aae8
|
@ -14,7 +14,8 @@ class AnnouncementsController < ApplicationController
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"announcements" => anns,
|
"announcements" => anns,
|
||||||
"extras" => {"widget-title"=>"Announcements"}
|
"extras" => {"widget-title"=>"Announcements"},
|
||||||
|
"total_pages" => announcements.total_pages
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue