From 5dad13bc3c4ff384ae44dc82ea9c9d5435d49832 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 9 Oct 2021 17:28:56 -0300 Subject: [PATCH] =?UTF-8?q?m=C3=A1s=20espacio=20entre=20los=20gr=C3=A1fico?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/stats/index.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/stats/index.haml b/app/views/stats/index.haml index d437aac1..e4ef5f61 100644 --- a/app/views/stats/index.haml +++ b/app/views/stats/index.haml @@ -8,16 +8,16 @@ %time{ datetime: @last_stat.created_at } "#{time_ago_in_words @last_stat.created_at}." - .mb-3 + .mb-5 - Stat::INTERVALS.each do |interval| = link_to t(".#{interval}"), site_stats_path(interval: interval, urls: params[:urls]), class: "btn #{'btn-primary active' if @interval == interval}" - .mb-3 + .mb-5 %h2= t('.host.title', count: @hostnames.size) %p.lead= t('.host.description') = line_chart site_stats_host_path(@chart_params), **@chart_options - .mb-3 + .mb-5 - original_urls = params[:urls]&.split("\n")&.map(&:strip) - rows = original_urls.size.zero? ? 3 : original_urls.size %h2= t('.urls.title') @@ -34,7 +34,7 @@ = line_chart site_stats_uris_path(urls: params[:urls], **@chart_params), **@chart_options - Stat::RESOURCES.each do |resource| - .mb-3 + .mb-5 %h2= t(".resources.#{resource}.title") %p.lead= t(".resources.#{resource}.description") = line_chart site_stats_resources_path(resource: resource, **@chart_params), **@chart_options.merge(StatsController::EXTRA_OPTIONS[resource])