From cdf6ee2038ac6edc84faaa14b33699f22e9b38d9 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 15 Jan 2020 18:11:48 -0800 Subject: [PATCH] Use for tag objects with no link or onclick. To suppress the pointy tags, you know. --- frontends/etiquette_flask/templates/tag_object.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/templates/tag_object.html b/frontends/etiquette_flask/templates/tag_object.html index a7287df..d6e382d 100644 --- a/frontends/etiquette_flask/templates/tag_object.html +++ b/frontends/etiquette_flask/templates/tag_object.html @@ -30,7 +30,8 @@ {% set class = ("tag_object" + " " + extra_classes).strip() %} {% set title = (with_alt_description and tag.description) or None %} {% set innertext = innertext or tag.name %} +{% set element = "a" if (link or onclick) else "span" %} -{{innertext}} +<{{element}} {{make_attributes(class=class, title=title, href=href, onclick=onclick)|safe}}>{{innertext}} {{-''-}} {% endmacro %}