8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Handle empty objects in event logs view

This commit is contained in:
Jean-Romain Garnier 2020-04-24 17:48:48 +02:00 committed by chirac
parent db9e2d7c1f
commit f350a24a42

View file

@ -46,14 +46,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% for version in revision.versions %}
<tr>
<td>
{% if version.object_id %}
<a href="{% url 'logs:history' version.application version.model_name version.object_id %}" title="{% trans "History" %}">
{{ version.name }}
</a>
{% else %}
{{ version.name }}
{% endif %}
</td>
<td>
{% if revision.performed_by %}
<a href="{% url 'users:profil' userid=revision.performed_by.id %}" title=tr_view_the_profile>
{{ revision.performed_by }}
</a>
{% else %}
{{ revision.performed_by }}
{% endif %}
</td>
<td>{{ revision.date_created }}</td>
<td>{{ revision.comment }}</td>