1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-28 01:30:11 -07:00
PrintABrick/app/Resources/views/pagination/sortable_link.html.twig
2017-06-14 17:46:32 +02:00

13 lines
552 B
Twig

{% if options['class'] == 'asc' %}
{% set icon = '<i class="icon sort content ascending"></i>' %}
{% set options = (options)|merge({'class':'item active'}) %}
{% elseif options['class'] == 'desc' %}
{% set icon = '<i class="icon sort content descending"></i>' %}
{% set options = (options)|merge({'class':'item active'}) %}
{% else %}
{% set icon = null %}
{% set options = (options)|merge({'class':'item'}) %}
{% endif %}
<a {% for attr, value in options %} {{ attr }}="{{ value }}"{% endfor %}>{{ icon|raw }} {{ title }}</a>