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