From b9bc20c7ceab5f4e484c04d352f65ee01b678407 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonne=20Ha=C3=9F?= <me@jhass.eu>
Date: Fri, 24 Jul 2015 11:03:50 +0200
Subject: [PATCH] Backport statistics page to Bootstrap 2

---
 app/views/node_info/_statistics.haml     | 35 ++++++++++++------------
 app/views/node_info/statistics.html.haml |  3 +-
 2 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/app/views/node_info/_statistics.haml b/app/views/node_info/_statistics.haml
index 212c19c115..6e5b44c08f 100644
--- a/app/views/node_info/_statistics.haml
+++ b/app/views/node_info/_statistics.haml
@@ -2,20 +2,21 @@
 -#   licensed under the Affero General Public License version 3 or later.  See
 -#   the COPYRIGHT file.
 
-.row
-  %h1= t("_statistics")
-  = render "statistic", name: t("statistics.name"), value: @statistics.name, activated: "serv-enabled"
-  = render "statistic", name: t("statistics.version"), value: @statistics.version, activated: "serv-enabled"
-  = render "statistic", name: t("statistics.registrations"), value: registrations_status(@statistics), activated: registrations_status_class(@statistics)
-  - if @statistics.expose_user_counts?
-    = render "statistic", name: t("statistics.total_users"), value: @statistics.total_users, activated: "serv-enabled"
-    = render "statistic", name: t("statistics.active_users_halfyear"), value: @statistics.halfyear_users, activated: "serv-enabled"
-    = render "statistic", name: t("statistics.active_users_monthly"), value: @statistics.monthly_users, activated: "serv-enabled"
-  - if @statistics.expose_posts_counts?
-    = render "statistic", name: t("statistics.local_posts"), value: @statistics.local_posts, activated: "serv-enabled"
-  - if @statistics.expose_comment_counts?
-    = render "statistic", name: t("statistics.local_comments"), value: @statistics.local_comments, activated: "serv-enabled"
-.row
-  %h1= t("statistics.services")
-  - Configuration::KNOWN_SERVICES.each do |service|
-    = render "statistic", name: "#{service.capitalize}", value: service_status(service, @statistics.available_services), activated: service_class(service, @statistics.available_services)
+.container-fluid
+  .row-fluid
+    %h1= t("_statistics")
+    = render "statistic", name: t("statistics.name"), value: @statistics.name, activated: "serv-enabled"
+    = render "statistic", name: t("statistics.version"), value: @statistics.version, activated: "serv-enabled"
+    = render "statistic", name: t("statistics.registrations"), value: registrations_status(@statistics), activated: registrations_status_class(@statistics)
+    - if @statistics.expose_user_counts?
+      = render "statistic", name: t("statistics.total_users"), value: @statistics.total_users, activated: "serv-enabled"
+      = render "statistic", name: t("statistics.active_users_halfyear"), value: @statistics.halfyear_users, activated: "serv-enabled"
+      = render "statistic", name: t("statistics.active_users_monthly"), value: @statistics.monthly_users, activated: "serv-enabled"
+    - if @statistics.expose_posts_counts?
+      = render "statistic", name: t("statistics.local_posts"), value: @statistics.local_posts, activated: "serv-enabled"
+    - if @statistics.expose_comment_counts?
+      = render "statistic", name: t("statistics.local_comments"), value: @statistics.local_comments, activated: "serv-enabled"
+  .row-fluid
+    %h1= t("statistics.services")
+    - Configuration::KNOWN_SERVICES.each do |service|
+      = render "statistic", name: "#{service.capitalize}", value: service_status(service, @statistics.available_services), activated: service_class(service, @statistics.available_services)
diff --git a/app/views/node_info/statistics.html.haml b/app/views/node_info/statistics.html.haml
index ba22e63d81..246fec5d9e 100644
--- a/app/views/node_info/statistics.html.haml
+++ b/app/views/node_info/statistics.html.haml
@@ -1,2 +1 @@
-.container-fluid
-  = render "statistics"
+= render "statistics"
-- 
GitLab