diff --git a/logs/templates/logs/aff_summary.html b/logs/templates/logs/aff_summary.html index 543cd60a..c9abd16f 100644 --- a/logs/templates/logs/aff_summary.html +++ b/logs/templates/logs/aff_summary.html @@ -37,9 +37,9 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for rev in reversions_list %} - + {% if rev.rev.content_type.name == 'ban' %} + {{ rev.datetime }} - {% if rev.rev.content_type.name == 'ban' %} {{ rev.username }} a banni {{ rev.rev.object.user.get_username }} @@ -51,7 +51,18 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endif %} ) - {% elif rev.rev.content_type.name == 'whitelist' %} + {% if is_bureau %} + + + + Annuler + + + {% endif %} + + {% elif rev.rev.content_type.name == 'whitelist' %} + + {{ rev.datetime }} {{ rev.username }} a autorisé gracieusement {{ rev.rev.object.user.get_username }} @@ -63,7 +74,18 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endif %} ) - {% elif rev.rev.content_type.name == 'user' %} + {% if is_bureau %} + + + + Annuler + + + {% endif %} + + {% elif rev.rev.content_type.name == 'user' %} + + {{ rev.datetime }} {{ rev.username }} a mis à jour {{ rev.rev.object.get_username }} @@ -71,7 +93,18 @@ with this program; if not, write to the Free Software Foundation, Inc., ({{ rev.comment }}) {% endif %} - {% elif rev.rev.content_type.name == 'vente' %} + {% if is_bureau %} + + + + Annuler + + + {% endif %} + + {% elif rev.rev.content_type.name == 'vente' %} + + {{ rev.datetime }} {{ rev.username }} a vendu {{ rev.rev.object.number }}x {{ rev.rev.object.name }} à {{ rev.rev.object.facture.user.get_username }} @@ -79,7 +112,18 @@ with this program; if not, write to the Free Software Foundation, Inc., (+{{ rev.rev.object.duration }} mois) {% endif %} - {% elif rev.rev.content_type.name == 'interface' %} + {% if is_bureau %} + + + + Annuler + + + {% endif %} + + {% elif rev.rev.content_type.name == 'interface' %} + + {{ rev.datetime }} {{ rev.username }} a modifié une interface de {{ rev.rev.object.machine.user.get_username }} @@ -87,7 +131,6 @@ with this program; if not, write to the Free Software Foundation, Inc., ({{ rev.comment }}) {% endif %} - {% endif %} {% if is_bureau %} @@ -97,6 +140,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% endif %} + {% endif %} {% endfor %}