mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-05-09 01:35:29 -04:00
Label tooltip support
This commit is contained in:
parent
2c411b6150
commit
5b0a56691b
1 changed files with 8 additions and 1 deletions
|
@ -15,7 +15,14 @@
|
|||
{% assign label_data = label | split:":" %}
|
||||
{% assign color = label_data[0] %}
|
||||
{% assign text = label_data[1] %}
|
||||
<span class="badge badge-{{color}}">{{text}}</span>
|
||||
{% assign tooltip = label_data[2] | default: "" %}
|
||||
{% assign help_icon = '<i class="far fa-question-circle"></i>' %}
|
||||
<span class="badge badge-{{color}}" {% if tooltip %} data-toggle="tooltip" title="{{ tooltip }}">{{text}} {{ help_icon
|
||||
}}
|
||||
{% else %}
|
||||
>{{text}}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue