mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-04 17:06:27 +00:00
Handle empty objects in event logs view
This commit is contained in:
parent
a0a9a2ff3c
commit
98bcc85f16
1 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue