no fallar si todavía no hay stats
This commit is contained in:
parent
d06edc2f62
commit
245973b519
1 changed files with 6 additions and 5 deletions
|
@ -2,11 +2,12 @@
|
||||||
.col
|
.col
|
||||||
%h1= t('.title')
|
%h1= t('.title')
|
||||||
%p.lead= t('.help')
|
%p.lead= t('.help')
|
||||||
%p
|
- if @last_stat
|
||||||
%small
|
%p
|
||||||
= t('.last_update')
|
%small
|
||||||
%time{ datetime: @last_stat.created_at }
|
= t('.last_update')
|
||||||
#{time_ago_in_words @last_stat.created_at}.
|
%time{ datetime: @last_stat.created_at }
|
||||||
|
#{time_ago_in_words @last_stat.created_at}.
|
||||||
|
|
||||||
.mb-5
|
.mb-5
|
||||||
- Stat::INTERVALS.each do |interval|
|
- Stat::INTERVALS.each do |interval|
|
||||||
|
|
Loading…
Reference in a new issue