From 9c489937e3e89c5fe7ca7b6091d84869b2719ed3 Mon Sep 17 00:00:00 2001 From: manson Date: Fri, 8 Aug 2014 16:32:09 +0800 Subject: [PATCH] fix pagenation --- app/controllers/web_resources_controller.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/web_resources_controller.rb b/app/controllers/web_resources_controller.rb index 5de5c3e..17a5382 100644 --- a/app/controllers/web_resources_controller.rb +++ b/app/controllers/web_resources_controller.rb @@ -13,13 +13,15 @@ class WebResourcesController < ApplicationController "title" => link.title, "context" => link.context, "statuses" => statuses, - "link_to_show" => link.url, - "total_pages" => links.total_pages + "link_to_show" => link.url } end { "web_link" => web_link, - "extras" => {"widget-title"=>t(:web_resource)} + "extras" => { + "widget-title"=>t(:web_resource) + }, + "total_pages" => links.total_pages } end