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

View File

@ -33,10 +33,12 @@
</div> </div>
</li> </li>
{% endfor %} {% endfor %}
{% if place %}
<li class="LP-ImageGrid__Item LP-ImageGrid__Item--add" title="Bild hinzufügen"> <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' %}" /> <img class="LP-Icon" src="{% static 'icons/plus.svg' %}" />
</a> </a>
</li> </li>
{% endif %}
</ul> </ul>
</div> </div>