8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

affichage des tickets sans user et adresse de reponse

This commit is contained in:
Grizzly 2019-07-12 12:00:56 +00:00 committed by Gabriel Detraz
parent 2650065787
commit 22c311c1ec

View file

@ -35,11 +35,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
{% trans "Opened by" %} {% trans "Opened by" %}
<a href="{% url 'users:profil' ticket.user.id%}"> {% if ticket.user %}
{{ ticket.user.get_full_name }} <a href="{% url 'users:profil' ticket.user.id%}">
</a> {{ ticket.user.get_full_name }}
</a>
{% else %}
{% trans "Anonymous User" %}
{% endif %}
{{ ticket.date | naturalday}}. {{ ticket.date | naturalday}}.
{% if not ticket.user %}
{% trans "Response address: " %}<A HREF="mailto:{{ticket.email}}?subject={% trans "Response to your ticket"%}&cc=cableurs@crans.org">{{ticket.email}}</A>
{% endif %}
</div> </div>
<div class="panel-body"> <div class="panel-body">