update admin dashboard
This commit is contained in:
parent
05e6a24301
commit
1d6c589672
2 changed files with 6 additions and 3 deletions
|
@ -75,7 +75,8 @@ def dashboard():
|
|||
#
|
||||
stats = {
|
||||
'users': models.Users.select().count(),
|
||||
# 'rules': models.Rules.select().count(),
|
||||
'containers': models.Containers.select().count(),
|
||||
'ips': models.Ips.select().count(),
|
||||
# 'traffic': models.RulesTraffic.select().count(),
|
||||
'payments': models.UsersBalanceTransactions.select().count(),
|
||||
}
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>users</th>
|
||||
<th>rules</th>
|
||||
<th>containers</th>
|
||||
<th>ips</th>
|
||||
<th>payments</th>
|
||||
<th>traffic</th>
|
||||
</tr>
|
||||
|
@ -17,7 +18,8 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td>{{ stats.users }}</td>
|
||||
<td>{{ stats.rules }}</td>
|
||||
<td>{{ stats.containers }}</td>
|
||||
<td>{{ stats.ips }}</td>
|
||||
<td>{{ stats.payments }}</td>
|
||||
<td>{{ stats.traffic }}</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue