1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

fix pagination when @total_size is devisible by @count

This commit is contained in:
☃ pitr 2013-03-14 12:29:52 -04:00
parent 1a7e29d04b
commit a69088c945

View file

@ -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}" »