privacyguides.org/_includes/badge.html

21 lines
872 B
HTML
Raw Normal View History

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