privacyguides.org/_includes/badge.html

21 lines
872 B
HTML
Raw Normal View History

2020-05-14 09:18:36 -04:00
{% if include.link %}
<a
2021-05-03 22:13:50 -04:00
href="{{ include.link }}" class="text-decoration-none link-{{ 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> <span class="text-decoration-underline">{{ include.text }}</span>{% 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 %}