_operations.html 555 Bytes
Newer Older
1 2 3
{% load i18n %}

{% for op in ops %}
4
{% if op.show_in_toolbar %}
5 6

{% if op.disabled %}
7
<span class="operation operation-{{op.op}} btn btn-default disabled btn-xs">
8 9
{% else %}
<a href="{{op.get_url}}" class="operation operation-{{op.op}} btn
10
    btn-{{op.effect}} btn-xs" title="{{op.name|capfirst}}: {{op.description|truncatewords:15}}">
11
{% endif %}
12
    <i class="fa fa-{{op.icon}}"></i>
13 14 15 16
    <span{% if not op.is_preferred %} class="sr-only"{% endif %}>{{op.name}}</span>
{% if op.disabled %}
</span>
{% else %}
17
</a>
18
{% endif %}
19 20

{% endif %}
21
{% endfor %}