resaltar el intervalo seleccionado

This commit is contained in:
f 2021-10-08 18:34:16 -03:00
parent cfb2d7a61d
commit 38090d7de7

View file

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