mirror of https://github.com/MISP/misp-dashboard
ui: Arranged centered trophie in modal + ame contrib/login to 7 days instead of 31
parent
0c057dfe2d
commit
f7b277931b
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue