mirror of
https://github.com/pretix/pretix.git
synced 2026-05-21 17:54:08 +00:00
remove impractical title attribute from icon templatetag
This commit is contained in:
@@ -28,11 +28,7 @@ register = template.Library()
|
||||
@register.simple_tag
|
||||
def icon(key, *args, **kwargs):
|
||||
return format_html(
|
||||
'<span class="fa fa-{} {}" aria-hidden="true"{}></span>',
|
||||
'<span class="fa fa-{} {}" aria-hidden="true"></span>',
|
||||
key,
|
||||
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