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

Closed
ghost wants to merge 2 commits from brave-label into master
2 changed files with 10 additions and 1 deletions
Showing only changes of commit ffcb6ffbfb - Show all commits

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.