From f7b277931be868bc6d203abd8facec510a5df725 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 24 Nov 2017 16:46:46 +0100 Subject: [PATCH] ui: Arranged centered trophie in modal + ame contrib/login to 7 days instead of 31 --- static/css/ranking.css | 5 +++++ templates/contrib.html | 4 ++-- templates/users.html | 2 +- users_helper.py | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/static/css/ranking.css b/static/css/ranking.css index ce76ca8..df7d62d 100644 --- a/static/css/ranking.css +++ b/static/css/ranking.css @@ -90,6 +90,11 @@ display: none; } +.table > thead > tr > th.centerCell { + text-align: center; + min-width: 45px; +} + .table > tbody > tr > td.centerCell { text-align: center; min-width: 45px; diff --git a/templates/contrib.html b/templates/contrib.html index aeca8c9..4faee41 100644 --- a/templates/contrib.html +++ b/templates/contrib.html @@ -188,14 +188,14 @@ {% for title in trophy_title_str %} - {{ title }} + {{ title }} {% endfor %} {% for perc in trophy_mapping %} - {{ perc }} + {{ perc }} {% endfor %} diff --git a/templates/users.html b/templates/users.html index 59294da..224b5b0 100644 --- a/templates/users.html +++ b/templates/users.html @@ -140,7 +140,7 @@ small {
- Contribution/login (last 31 days) + Contribution/login (last 7 days) Dates: diff --git a/users_helper.py b/users_helper.py index e70cd5e..48aed17 100644 --- a/users_helper.py +++ b/users_helper.py @@ -81,7 +81,7 @@ class Users_helper: totLog = 1 return totContrib/totLog - def getTopOrglogin(self, date, maxNum=12, prev_days=31): + def getTopOrglogin(self, date, maxNum=12, prev_days=7): all_logged_in_orgs = self.getAllLoggedInOrgs(date, prev_days) data = [] for org in all_logged_in_orgs: