Revision d2c5fc88
Added by Ondřej Pražák over 8 years ago
app/helpers/hosts_helper.rb | ||
---|---|---|
end
|
||
|
||
def days_ago(time)
|
||
((Time.zone.now - time) / 1.day).round.to_i
|
||
((Time.zone.now - time) / 1.day).ceil.to_i
|
||
end
|
||
|
||
def authorized?
|
Also available in: Unified diff
Fixes #4468 - Dropdown shows '1' when all reports within last 24 hours
(cherry picked from commit 8af7d0e1d5f187e5d277ce369522baa0938d88e8)