privacyguides.org/_includes/badge.html

22 lines
843 B
HTML
Raw Normal View History

2020-05-14 09:18:36 -04:00
{% if include.link %}
<a
href="{{ include.link }}" class="text-decoration-none badge rounded-pill bg-{{ include.color | default: "info" }}"
2020-05-14 09:18:36 -04:00
{% if include.tooltip %}
2021-05-03 22:13:50 -04:00
data-bs-toggle="tooltip"
title="{{ include.tooltip }}"><i class="{{ include.icon | default: "fad fa-question-circle"}}"></i> {{ include.text }}
{% else %}><i class="{{ include.icon | default: "fas fa-external-link-alt"}}"></i> {{ include.text }}
{% endif %}
2020-05-14 09:18:36 -04:00
</a>
{% else %}
<span
2021-05-03 22:13:50 -04:00
class="badge rounded-pill bg-{{ include.color | default: "info" }}"
2020-05-14 09:18:36 -04:00
{% if include.tooltip %}
2021-05-03 22:13:50 -04:00
data-bs-toggle="tooltip"
title="{{ include.tooltip }}"
> <i class="{{ include.icon | default: "fad fa-question-circle"}}"></i> {{include.text}}
2020-05-14 09:18:36 -04:00
{% else %}
> {% if include.icon %}<i class="{{ include.icon }}"></i>{% endif %} {{include.text}}
{% endif %}
</span>
{% endif %}