2020-05-14 15:18:36 +02:00
|
|
|
{% if include.link %}
|
|
|
|
<a
|
2021-10-14 01:17:49 +02:00
|
|
|
href="{{ include.link }}" class="text-decoration-none 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 }}
|
2021-10-14 01:17:49 +02:00
|
|
|
{% else %}><i class="{{ include.icon | default: "fas fa-external-link-alt"}}"></i> {{ include.text }}
|
|
|
|
{% 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 %}
|