From 22bba5c3355231379061efe676ebc0df5f5a4896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Sun, 10 Sep 2017 00:40:42 +0000 Subject: [PATCH] Affiche des infos sur certains type d'event --- logs/templates/logs/aff_summary.html | 34 +++++++++++++++++----------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/logs/templates/logs/aff_summary.html b/logs/templates/logs/aff_summary.html index 35504144..57cf56e5 100644 --- a/logs/templates/logs/aff_summary.html +++ b/logs/templates/logs/aff_summary.html @@ -31,31 +31,39 @@ with this program; if not, write to the Free Software Foundation, Inc., - - - - - - + + + {% for revision in revisions_list %} {% for reversion in revision.version_set.all %} - - - - + {% if reversion.content_type.name in 'ban,whitelist,user,vente,interface'|slice:',' %} + - - {% if is_bureau %} + {% if reversion.content_type.name == 'ban' %} + + {% elif reversion.content_type.name == 'whitelist' %} + + {% elif reversion.content_type.name == 'user' %} + + {% elif reversion.content_type.name == 'vente' %} + + {% elif reversion.content_type.name == 'interface' %} + + {% endif %} + {% if is_bureau %} - {% endif %} + {% endif %} + {% endif %} {% endfor %} {% endfor %}
Objet modifiéType de l'objetModification parDate de modificationCommentaireDateModification
{{ reversion.object|truncatechars:20 }}{{ reversion.object|classname }}{{ revision.user }}
{{ revision.date_created }}{{ revision.comment }}{{ revision.user.get_username }} a banni {{ reversion.object.user.get_username }} ({{ reversion.object.raison }}){{ revision.user.get_username }} a autorisé gracieusement {{ reversion.object.user.get_username }} ({{ reversion.object.raison }}){{ revision.user.get_username }} a ajouté {{ reversion.object.get_username }}{{ reversion.object.facture.user.get_username }} a acheté {{ reversion.object.number }}x {{ reversion.object.name }}{% if reversion.object.iscotisation %} (+{{ reversion.object.duration }} mois){% endif %}{{ revision.user.get_username }} a ajouté une interface à {{ reversion.object.machine.user.get_username }} (MAC : {{ reversion.object.mac_bare }}) Annuler
+ +