no fallar si todavía no hay stats

This commit is contained in:
f 2021-10-20 12:53:42 -03:00
parent d06edc2f62
commit 245973b519

View file

@ -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|