better readable badges

This commit is contained in:
Matthias 2021-10-04 22:20:50 +02:00
parent e7237d13ae
commit 40789db66c
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -31,19 +31,13 @@
{% mixin_enabled plugin 'settings' as settings %}
<tr>
<td>{{plugin_key}} - {{ plugin.human_name }}
{% if urls %}
<span class='badge'><a class='nav-toggle text-success' id='select-plugin-{{plugin_key}}'>{% trans 'Has urls' %}</a></span>
{% endif %}
{% if settings %}
<span class='badge'><a class='nav-toggle text-success' id='select-plugin-{{plugin_key}}'>{% trans 'Has settings' %}</a></span>
{% endif %}
<td>{{ plugin.human_name }}<span class="text-muted"> - {{plugin_key}}</span>
{% define plugin.registered_mixins as mixin_list %}
{% if mixin_list %}
{% for mixin in mixin_list %}
<span class='badge'><a class='nav-toggle text-success' id='select-plugin-{{plugin_key}}'>
{% blocktrans with name=mixin.human_name %}has {{name}}{% endblocktrans %}</a></span>
<a class='nav-toggle' id='select-plugin-{{plugin_key}}'>
<span class='badge badge-badge-secondary'>{% blocktrans with name=mixin.human_name %}has {{name}}{% endblocktrans %}</span>
</a>
{% endfor %}
{% endif %}
</td>