From 38090d7de72d5cfdb1cad2e4349479ed17f04221 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 8 Oct 2021 18:34:16 -0300 Subject: [PATCH] resaltar el intervalo seleccionado --- app/views/stats/index.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/stats/index.haml b/app/views/stats/index.haml index e77454b1..63aa76cd 100644 --- a/app/views/stats/index.haml +++ b/app/views/stats/index.haml @@ -10,7 +10,7 @@ .mb-3 - StatsController::INTERVALS.each do |interval| - = link_to t(".#{interval}"), site_stats_path(interval: interval), class: 'btn' + = link_to t(".#{interval}"), site_stats_path(interval: interval), class: "btn #{'btn-primary active' if params[:interval].to_sym == interval}" .mb-3 %h2= t('.host', count: @hostnames.size)