fix pagenation
This commit is contained in:
parent
69fa966c8b
commit
9c489937e3
|
@ -13,13 +13,15 @@ class WebResourcesController < ApplicationController
|
||||||
"title" => link.title,
|
"title" => link.title,
|
||||||
"context" => link.context,
|
"context" => link.context,
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
"link_to_show" => link.url,
|
"link_to_show" => link.url
|
||||||
"total_pages" => links.total_pages
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
{
|
{
|
||||||
"web_link" => web_link,
|
"web_link" => web_link,
|
||||||
"extras" => {"widget-title"=>t(:web_resource)}
|
"extras" => {
|
||||||
|
"widget-title"=>t(:web_resource)
|
||||||
|
},
|
||||||
|
"total_pages" => links.total_pages
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue