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|