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.,
Objet modifié | -Type de l'objet | -Modification par | -Date de modification | -Commentaire | -+ | Date | +Modification | +|
---|---|---|---|---|---|---|---|---|
{{ reversion.object|truncatechars:20 }} | -{{ reversion.object|classname }} | -{{ revision.user }} | + {% if reversion.content_type.name in 'ban,whitelist,user,vente,interface'|slice:',' %} +||||||
{{ revision.date_created }} | -{{ revision.comment }} | - {% if is_bureau %} + {% if reversion.content_type.name == 'ban' %} +{{ revision.user.get_username }} a banni {{ reversion.object.user.get_username }} ({{ reversion.object.raison }}) | + {% elif reversion.content_type.name == 'whitelist' %} +{{ revision.user.get_username }} a autorisé gracieusement {{ reversion.object.user.get_username }} ({{ reversion.object.raison }}) | + {% elif reversion.content_type.name == 'user' %} +{{ revision.user.get_username }} a ajouté {{ reversion.object.get_username }} | + {% elif reversion.content_type.name == 'vente' %} +{{ reversion.object.facture.user.get_username }} a acheté {{ reversion.object.number }}x {{ reversion.object.name }}{% if reversion.object.iscotisation %} (+{{ reversion.object.duration }} mois){% endif %} | + {% elif reversion.content_type.name == 'interface' %} +{{ revision.user.get_username }} a ajouté une interface à {{ reversion.object.machine.user.get_username }} (MAC : {{ reversion.object.mac_bare }}) | + {% endif %} + {% if is_bureau %}Annuler | - {% endif %} + {% endif %}