From 245973b5196d478e64d7f3f14ae73fda72cd0e82 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 20 Oct 2021 12:53:42 -0300 Subject: [PATCH] =?UTF-8?q?no=20fallar=20si=20todav=C3=ADa=20no=20hay=20st?= =?UTF-8?q?ats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/stats/index.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/stats/index.haml b/app/views/stats/index.haml index fb5c0d5..bfcf33e 100644 --- a/app/views/stats/index.haml +++ b/app/views/stats/index.haml @@ -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|