hotfix: place and tags show correctly

This commit is contained in:
Qwann 2018-08-27 15:51:29 +02:00
parent 3275de7c9c
commit 727bd10aeb

View file

@ -4,11 +4,13 @@
<tr>
<td>
<span class="glyphicon glyphicon-tree-deciduous"></span>
{% if activity.places.all %}
<span>{{ activity.places.all |join:", "}}</span>
{% with activity|get_herited:'places' as places %}
{% if places.all %}
<span>{{ places.all |join:", "}}</span>
{% else %}
<span>&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;</span>
{% endif %}
{% endwith %}
</td>
<td>
<strong>public</strong>
@ -36,11 +38,13 @@
</tr>
<td>
<span class="glyphicon glyphicon-tag"></span>
{% if activity.tags.all %}
<span>{{ activity.tags.all |join:", "}}</span>
{% with activity|get_herited:'tags' as tags %}
{% if tags.all %}
<span>{{ tags.all |join:", "}}</span>
{% else %}
<span>&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;</span>
{% endif %}
{% endwith %}
</td>
<td>
{% if has_perm %}