mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: display stats about total & active TUs on proposals
This patch brings in two new features: - when viewing proposal listings, there is a new Statistics section, containing the total and active number of Trusted Users found in the database. - when viewing a proposal directly, the number of active trusted users assigned when the proposal was added is now displayed in the details section. Closes #323 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
0afa07ed3b
commit
49c5a3facf
6 changed files with 107 additions and 0 deletions
|
@ -1,6 +1,22 @@
|
|||
{% extends "partials/layout.html" %}
|
||||
|
||||
{% block pageContent %}
|
||||
<div class="box">
|
||||
<h2>{{ "Statistics" | tr }}</h2>
|
||||
<table class="no-width">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-right">{{ "Total" | tr }} {{ "Trusted Users" | tr }}:</td>
|
||||
<td>{{ trusted_user_count }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-right">{{ "Active" | tr }} {{ "Trusted Users" | tr }}:</td>
|
||||
<td>{{ active_trusted_user_count }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{%
|
||||
with table_class = "current-votes",
|
||||
total_votes = current_votes_count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue