más espacio entre los gráficos
This commit is contained in:
parent
7ab2ec5933
commit
5dad13bc3c
1 changed files with 4 additions and 4 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue