ui: Arranged centered trophie in modal + ame contrib/login to 7 days instead of 31

pull/9/head
Sami Mokaddem 2017-11-24 16:46:46 +01:00
parent 0c057dfe2d
commit f7b277931b
4 changed files with 9 additions and 4 deletions

View File

@ -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;

View File

@ -188,14 +188,14 @@
<thead>
<tr>
{% for title in trophy_title_str %}
<th>{{ title }}</th>
<th class="centerCell">{{ title }}</th>
{% endfor %}
</tr>
</thead>
<tbody id='bodyTableTrophyModal'>
<tr>
{% for perc in trophy_mapping %}
<td>{{ perc }}</td>
<td class="centerCell">{{ perc }}</td>
{% endfor %}
</tr>
<tr>

View File

@ -140,7 +140,7 @@ small {
<div class="col-lg-5">
<div class="panel panel-default" style="">
<div class="panel-heading bg-info" style="font-weight: bold;">
<b>Contribution/login (last 31 days)</b>
<b>Contribution/login (last 7 days)</b>
<strong class='leftSepa textTopHeader' style="float: none; padding: 11px;">Dates:
<input type="text" id="datepickerOrgLogin" size="10" style="">
</strong>

View File

@ -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: