Add experimental label to Brave, add tooltip support for labels #661

Closed
ghost wants to merge 2 commits from brave-label into master
3 changed files with 11 additions and 2 deletions

2
.gitattributes vendored
View File

@ -1 +1 @@
index.html diff=html
index.html diff

View File

@ -15,7 +15,16 @@
{% 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 %}

Binary file not shown.