5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 18:26:21 +00:00

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
%h1= t('.title')
%p.lead= t('.help')
%p
%small
= t('.last_update')
%time{ datetime: @last_stat.created_at }
#{time_ago_in_words @last_stat.created_at}.
- if @last_stat
%p
%small
= t('.last_update')
%time{ datetime: @last_stat.created_at }
#{time_ago_in_words @last_stat.created_at}.
.mb-5
- Stat::INTERVALS.each do |interval|