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 %}