Small check is this partial is used within place

This commit is contained in:
reverend 2021-04-06 19:14:58 +02:00
parent 120e63808a
commit f2eb048f0b
1 changed files with 3 additions and 1 deletions

View File

@ -33,10 +33,12 @@
</div>
</li>
{% endfor %}
{% if place %}
<li class="LP-ImageGrid__Item LP-ImageGrid__Item--add" title="Bild hinzufügen">
<a class="LP-Link" href="{% url 'place_image_create' place_id=place.id%}">
<a class="LP-Link" href="{% url 'place_image_create' place_id=place.id %}">
<img class="LP-Icon" src="{% static 'icons/plus.svg' %}" />
</a>
</li>
{% endif %}
</ul>
</div>