Files
stundenfuchs/app/templates/ui/icon_button.html
T
maddin 9794362f39
CI / checks (push) Has been cancelled
chore: initialize public repository
2026-03-22 12:55:55 +00:00

18 lines
592 B
HTML

{% macro icon_link(href, icon, label, title='', extra_class='') -%}
<a class="icon-button {{ extra_class }}"
href="{{ href }}"
title="{{ title if title else label }}"
aria-label="{{ label }}">
<img class="dash-icon" src="{{ icon }}" alt="" />
</a>
{%- endmacro %}
{% macro icon_submit(icon, label, title='', extra_class='') -%}
<button type="submit"
class="icon-button {{ extra_class }}"
title="{{ title if title else label }}"
aria-label="{{ label }}">
<img class="dash-icon" src="{{ icon }}" alt="" />
</button>
{%- endmacro %}