mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: do not try to display author name/url for anonymous maps
This commit is contained in:
parent
185cc65f68
commit
0d5f0b175a
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue