8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +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

@ -36,10 +36,17 @@ 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" %}
{% if ticket.user %}
<a href="{% url 'users:profil' ticket.user.id%}"> <a href="{% url 'users:profil' ticket.user.id%}">
{{ ticket.user.get_full_name }} {{ ticket.user.get_full_name }}
</a> </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">