From a69088c945f99c6e620a9bc7b3a2b9eab1fb8268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=83=20pitr?= Date: Thu, 14 Mar 2013 12:29:52 -0400 Subject: [PATCH] fix pagination when @total_size is devisible by @count --- web/views/_paging.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/views/_paging.slim b/web/views/_paging.slim index 867f507e..2735cf15 100755 --- a/web/views/_paging.slim +++ b/web/views/_paging.slim @@ -12,4 +12,4 @@ li a href="#{url}?page=#{@current_page + 1}" #{@current_page + 1} li class="#{'disabled' if @total_size <= @current_page * @count}" - a href="#{url}?page=#{(@total_size / @count).ceil + 1}" » + a href="#{url}?page=#{(@total_size.to_f / @count).ceil}" »