From 291dac91968d3276e707c2c39f50036665c62c2f Mon Sep 17 00:00:00 2001 From: Alexandre Arias <apa13@inf.ufpr.br> Date: Fri, 13 Nov 2015 09:56:07 -0200 Subject: [PATCH] add some collection statistics Signed-off-by: Alexandre Arias <apa13@inf.ufpr.br> --- app/controllers/management/statistics_controller.rb | 1 + app/views/management/statistics/accesses.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/management/statistics_controller.rb b/app/controllers/management/statistics_controller.rb index 26c7ae202..cd9c99adf 100644 --- a/app/controllers/management/statistics_controller.rb +++ b/app/controllers/management/statistics_controller.rb @@ -49,6 +49,7 @@ class Management::StatisticsController < ManagementController end def collections + @n_collections = @@n_collections || [] end diff --git a/app/views/management/statistics/accesses.html.erb b/app/views/management/statistics/accesses.html.erb index 719510dcd..ccd0a2a43 100644 --- a/app/views/management/statistics/accesses.html.erb +++ b/app/views/management/statistics/accesses.html.erb @@ -15,13 +15,13 @@ <div class="col-sm-6 col-md-12"> <div class="ls-box"> <h6 class="ls-title-6">Total</h6> - <strong class="ls-color-theme">2091</strong> + <strong class="ls-color-theme"><%= @total %></strong> </div> </div> </div> </div> -<li><h2>TOTAL:<%=@total%></h2></li> + <div align="center"> -- GitLab