From 810f71e9c1348825303b990299ed7ad03e767bd7 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 9 Oct 2021 18:25:43 -0300 Subject: [PATCH] =?UTF-8?q?contar=20por=20qu=C3=A9=20mostramos=20los=20rec?= =?UTF-8?q?ursos=20usados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/stats/index.haml | 6 +++++- config/locales/en.yml | 6 ++++-- config/locales/es.yml | 10 ++++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/app/views/stats/index.haml b/app/views/stats/index.haml index 4119f8a..e69c254 100644 --- a/app/views/stats/index.haml +++ b/app/views/stats/index.haml @@ -33,8 +33,12 @@ - if @normalized_urls.present? = line_chart site_stats_uris_path(urls: params[:urls], **@chart_params), **@chart_options + .mb-5 + %h2= t('.resources.title') + %p.lead= t('.resources.description') + - Stat::RESOURCES.each do |resource| .mb-5 - %h2= t(".resources.#{resource}.title") + %h3= 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]) diff --git a/config/locales/en.yml b/config/locales/en.yml index af864e7..be32703 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -264,15 +264,17 @@ en: title: zero: 'Site visits' one: 'Site visits' - other: 'Visits by site name' + other: 'Visits by domain name' description: 'Counts visited pages on your site, grouped by domain names in use.' urls: title: 'Visits by URL' description: 'Counts visits or downloads on any URL.' label: 'URLs ("links")' help: 'Copy and paste a single URL per line' - submit: 'Get stats' + submit: 'Update graph' resources: + title: 'Resource usage' + description: "In this section you can find statistics on your site's use of Sutty's shared resources" builds: title: 'Site publication' description: 'Times you published your site.' diff --git a/config/locales/es.yml b/config/locales/es.yml index 7d0fe2b..774a8cf 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -269,15 +269,17 @@ es: title: zero: 'Visitas del sitio' one: 'Visitas del sitio' - other: 'Visitas por nombre del sitio' - description: 'Cuenta la cantidad de páginas visitadas en tu sitio, dividida por los nombres de dominio en uso.' + other: 'Visitas agrupadas por nombre de dominio del sitio' + description: 'Cuenta la cantidad de páginas visitadas en tu sitio.' urls: title: 'Visitas por dirección' description: 'Cantidad de visitas o descargas por dirección.' - label: 'Direcciones web ("links", vínculos)' + label: 'Direcciones web (URL, "links", vínculos)' help: 'Copia y pega una dirección por línea.' - submit: 'Obtener estadísticas' + submit: 'Actualizar gráfico' resources: + title: 'Uso de recursos' + description: 'En esta sección podrás acceder a estadísticas del uso de recursos compartidos con otros sitios alojados en Sutty.' builds: title: 'Publicaciones del sitio' description: 'Cantidad de veces que publicaste tu sitio.'