fix: do not try to display author name/url for anonymous maps

This commit is contained in:
Yohan Boniface 2024-09-04 15:39:48 +02:00
parent 185cc65f68
commit 0d5f0b175a

View file

@ -7,7 +7,9 @@
<div class="legend">
<a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>
{% with author=map_inst.get_author %}
<em>{% trans "by" %} <a href="{{ author.get_url }}">{{ author }}</a></em>
{% if author %}
<em>{% trans "by" %} <a href="{{ author.get_url }}">{{ author }}</a></em>
{% endif %}
{% endwith %}
</div>
</div>