mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
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:
parent
296b8135a1
commit
5ffaf98c7b
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue