From 0d5f0b175a4b3f8377523a09cf11e15d1644545c Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 4 Sep 2024 15:39:48 +0200 Subject: [PATCH] fix: do not try to display author name/url for anonymous maps --- umap/templates/umap/map_list.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/umap/templates/umap/map_list.html b/umap/templates/umap/map_list.html index 9e7f7f3e..990b2acb 100644 --- a/umap/templates/umap/map_list.html +++ b/umap/templates/umap/map_list.html @@ -7,7 +7,9 @@
{{ map_inst.name }} {% with author=map_inst.get_author %} - {% trans "by" %} {{ author }} + {% if author %} + {% trans "by" %} {{ author }} + {% endif %} {% endwith %}