1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-30 16:41:19 +02:00

Translate logs app and cleanup

This commit is contained in:
Alexandre Iooss
2019-08-16 20:14:52 +02:00
parent c2ab1e4bc5
commit 670f7dfa39
9 changed files with 77 additions and 149 deletions

View File

@ -1,25 +0,0 @@
{% comment %}
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% for key_dict, stats_dict in stats_list.items %}
{% for key, stats in stats_dict.items %}
<table class="table table-striped">
<thead>
<h4>Statistiques par {{ key_dict }} de {{ key }}</h4>
<tr>
<th>{{ key_dict }}</th>
<th>Nombre de {{ key }} par {{ key_dict }}</th>
<th>Rang</th>
</tr>
</thead>
{% for stat in stats %}
<tr>
<td>{{ stat|truncatechars:25 }}</td>
<td>{{ stat.num }}</td>
<td>{{ forloop.counter }}</td>
</tr>
{% endfor %}
</table>
{% endfor %}
{% endfor %}

View File

@ -3,9 +3,26 @@
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% block title %}Statistiques par utilisateur{% endblock %}
{% load i18n %}
{% block content %}
<h2>Statistiques par utilisateur</h2>
{% include "logs/aff_stats_users.html" with stats_list=stats_list %}
<table class="table">
<thead>
<tr>
<th>{% trans "user"|capfirst %}</th>
<th>{% trans "Database edits" %}</th>
<th>{% trans "Rank" %}</th>
</tr>
</thead>
<tbody>
{% for stat in stats %}
<tr>
<td>{{ stat|truncatechars:25 }}</td>
<td>{{ stat.num }}</td>
<td>{{ forloop.counter }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}