From e36c9568d759e72cee875a1787dbb64296fcc90d Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Tue, 24 Apr 2018 10:00:26 +0200 Subject: [PATCH] Clean up markup --- app/assets/stylesheets/statistics.css.scss | 15 +++++++++++++++ app/views/statistics/graphs.html.slim | 8 ++++++-- config/locales/de.yml | 4 ++++ config/locales/en.yml | 4 ++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/statistics.css.scss b/app/assets/stylesheets/statistics.css.scss index 9fcc81cc..98bea652 100644 --- a/app/assets/stylesheets/statistics.css.scss +++ b/app/assets/stylesheets/statistics.css.scss @@ -102,6 +102,21 @@ div.negative-result { } } +.group { + .title { + display: flex; + align-items: baseline; + + h1 { + flex-grow: 1; + } + + h2 { + font-size: medium; + } + } +} + .spinner { width: 40px; height: 40px; diff --git a/app/views/statistics/graphs.html.slim b/app/views/statistics/graphs.html.slim index c2627c1f..e9c88a8a 100644 --- a/app/views/statistics/graphs.html.slim +++ b/app/views/statistics/graphs.html.slim @@ -3,11 +3,15 @@ = stylesheet_link_tag(asset_path('vis.min.css', type: :stylesheet)) .group - h1 User Activity + .title + h1 = t('.user_activity') + a href='#' = t('.history') .spinner .graph#user-activity .group - h1 RFC Activity + .title + h1 = t('.rfc_activity') + a href='#' = t('.history') .spinner .graph#rfc-activity diff --git a/config/locales/de.yml b/config/locales/de.yml index 4c5066fb..0362a8f5 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -757,3 +757,7 @@ de: users: currently_active: "Aktiv (5 Minuten)" currently_active60: "Aktiv (60 Minuten)" + graphs: + user_activity: "Nutzeraktivität" + rfc_activity: "Kommentaranfragenaktivität" + history: "Historie" diff --git a/config/locales/en.yml b/config/locales/en.yml index 6ccc1477..404305ab 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -757,3 +757,7 @@ en: users: currently_active: "Active (5 minutes)" currently_active60: "Active (60 minutes)" + graphs: + user_activity: "User Activity" + rfc_activity: "RfC Activity" + history: "History"