show 0-0 instead of 1-0 if no project/action exists

limit maximum to actual number of projects/actions
This commit is contained in:
Carsten Otto 2015-05-14 12:53:24 +02:00
parent 296b8135a1
commit 5ffaf98c7b
2 changed files with 6 additions and 0 deletions

View file

@ -89,6 +89,9 @@ class ProjectsController < ApplicationController
@range_low = (page.to_i-1) * items_per_page + 1
@range_high = @range_low + @projects.size - 1
@range_low = 0 if @total == 0
@range_high = @total if @range_high > @total
init_not_done_counts(['project'])
end