Add experimental label to Brave, add tooltip support for labels #661
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1 +1 @@
|
|||||||
index.html diff=html
|
index.html diff
|
||||||
|
@ -15,7 +15,16 @@
|
|||||||
{% assign label_data = label | split:":" %}
|
{% assign label_data = label | split:":" %}
|
||||||
{% assign color = label_data[0] %}
|
{% assign color = label_data[0] %}
|
||||||
{% assign text = label_data[1] %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
BIN
index.html
BIN
index.html
Binary file not shown.
Reference in New Issue
Block a user