tablesort-indicator.html.twig in Open Social 8.7
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/system/tablesort-indicator.html.twig
- 8 themes/socialbase/templates/system/tablesort-indicator.html.twig
- 8.2 themes/socialbase/templates/system/tablesort-indicator.html.twig
- 8.3 themes/socialbase/templates/system/tablesort-indicator.html.twig
- 8.4 themes/socialbase/templates/system/tablesort-indicator.html.twig
- 8.5 themes/socialbase/templates/system/tablesort-indicator.html.twig
- 8.6 themes/socialbase/templates/system/tablesort-indicator.html.twig
- 8.8 themes/socialbase/templates/system/tablesort-indicator.html.twig
Theme override for displaying a tablesort indicator.
Available variables:
- style: Either 'asc' or 'desc', indicating the sorting direction.
File
themes/socialbase/templates/system/tablesort-indicator.html.twigView source
- {#
- /**
- * @file
- * Theme override for displaying a tablesort indicator.
- *
- * Available variables:
- * - style: Either 'asc' or 'desc', indicating the sorting direction.
- */
- #}
- <span{{ attributes.addClass('tablesort') }}>
-
- {% if style == 'asc' -%}
- <svg class="icon-tablesort">
- <use xlink:href="#icon-arrow_drop_down"></use>
- </svg>
- <span class="visually-hidden">
- {{ 'Sort ascending'|t }}
- </span>
-
- {% else -%}
-
- <svg class="icon-tablesort">
- <use xlink:href="#icon-arrow_drop_up"></use>
- </svg>
- <span class="visually-hidden">
- {{ 'Sort descending'|t }}
- </span>
- {% endif %}
-
- </span>