From 22c311c1eca17936f92797520e07e40281da9431 Mon Sep 17 00:00:00 2001 From: Grizzly Date: Fri, 12 Jul 2019 12:00:56 +0000 Subject: [PATCH] affichage des tickets sans user et adresse de reponse --- tickets/templates/tickets/aff_ticket.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tickets/templates/tickets/aff_ticket.html b/tickets/templates/tickets/aff_ticket.html index 42ef897b..4683f1fc 100644 --- a/tickets/templates/tickets/aff_ticket.html +++ b/tickets/templates/tickets/aff_ticket.html @@ -35,11 +35,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
- {% trans "Opened by" %} - - {{ ticket.user.get_full_name }} - + {% trans "Opened by" %} + {% if ticket.user %} + + {{ ticket.user.get_full_name }} + + {% else %} + {% trans "Anonymous User" %} + {% endif %} {{ ticket.date | naturalday}}. + {% if not ticket.user %} + {% trans "Response address: " %}{{ticket.email}} + {% endif %}