Show become photograph button only when needed

This commit is contained in:
Alexandre Iooss 2022-03-01 11:39:48 +01:00
parent 7e912b225c
commit 6376e3b550

View file

@ -29,12 +29,14 @@ SPDX-License-Identifier: GPL-3.0-or-later
<a href="mailto:photos@crans.org?subject=[ABUS] Nouvelle requête" class="btn btn-dark btn-sm">Abuse request</a>
{% endblocktranslate %}
</p>
{% if not perms.photologue.add_photo %}
<p>
{% blocktranslate trimmed %}
If you want to obtain the right to upload pictures, please let us know:
<a href="mailto:photos@crans.org?subject=[Photographe] Demande de droits photographe" class="btn btn-dark btn-sm">Become a photograph</a>
{% endblocktranslate %}
</p>
{% endif %}
<h3>{% trans "Last galleries" %}</h3>
<div class="row mb-2">