From 129c787a9c85066c4da00f45c5e4a580f96290af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Sun, 10 Sep 2017 01:52:02 +0000 Subject: [PATCH] =?UTF-8?q?Remplace=20par=20'=3F'=20quand=20on=20ne=20sait?= =?UTF-8?q?=20pas=20qui=20a=20fait=20la=20reversion=20(None)=20+=20=C3=A9c?= =?UTF-8?q?late=20le=20code=20sur=20plusieures=20lignes=20pour=20la=20lisi?= =?UTF-8?q?bilit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logs/templates/logs/aff_summary.html | 52 +++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/logs/templates/logs/aff_summary.html b/logs/templates/logs/aff_summary.html index c20bf2cb..5170bcd6 100644 --- a/logs/templates/logs/aff_summary.html +++ b/logs/templates/logs/aff_summary.html @@ -42,15 +42,57 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ revision.datetime }} {% if reversion.content_type.name == 'ban' %} - {{ revision.revision.user.get_username }} a banni {{ reversion.object.user.get_username }} ({{ reversion.object.raison }}) + + {% if revision.revision.user.et_username %} + {{ revision.revision.user.get_username }} + {% else %} + ? + {% endif %} + a banni + {{ reversion.object.user.get_username }} + ({{ reversion.object.raison }}) + {% elif reversion.content_type.name == 'whitelist' %} - {{ revision.revision.user.get_username }} a autorisé gracieusement {{ reversion.object.user.get_username }} ({{ reversion.object.raison }}) + + {% if revision.revision.user.get_username %} + {{ revision.revision.user.get_username }} + {% else %} + ? + {% endif %} + a autorisé gracieusement + {{ reversion.object.user.get_username }} + ({{ reversion.object.raison }}) + {% elif reversion.content_type.name == 'user' %} - {{ revision.revision.user.get_username }} a ajouté {{ reversion.object.get_username }} + + {% if revision.revision.user.get_username %} + {{ revision.revision.user.get_username }} + {% else %} + ? + {% endif %} + 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 %} + + {{ 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.revision.user.get_username }} a ajouté une interface à {{ reversion.object.machine.user.get_username }} (MAC : {{ reversion.object.mac_bare }}) + {{ revision.revision.user.get_username }} + {% if revision.revision.user.get_username %} + {{ revision.revision.user.get_username }} + {% else %} + ? + {% endif %} + a ajouté une interface à + {{ reversion.object.machine.user.get_username }} + (MAC : {{ reversion.object.mac_bare }}) + {% endif %} {% if is_bureau %}