mirror of
https://github.com/pretix/pretix.git
synced 2026-05-26 18:43:59 +00:00
remove impractical title attribute from icon templatetag
This commit is contained in:
@@ -28,11 +28,7 @@ register = template.Library()
|
|||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def icon(key, *args, **kwargs):
|
def icon(key, *args, **kwargs):
|
||||||
return format_html(
|
return format_html(
|
||||||
'<span class="fa fa-{} {}" aria-hidden="true"{}></span>',
|
'<span class="fa fa-{} {}" aria-hidden="true"></span>',
|
||||||
key,
|
key,
|
||||||
kwargs["class"] if "class" in kwargs else "",
|
kwargs["class"] if "class" in kwargs else "",
|
||||||
"" if "title" not in kwargs else format_html(
|
|
||||||
' title="{}"',
|
|
||||||
kwargs["title"]
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user