1234567891011121314151617181920212223242526 |
- {#
- /**
- * @file
- * Default theme implementation for displaying a tablesort indicator.
- *
- * Available variables:
- * - style: Either 'asc' or 'desc', indicating the sorting direction.
- *
- * @ingroup themeable
- */
- #}
- {%
- set classes = [
- 'tablesort',
- 'tablesort--' ~ style,
- ]
- %}
- <span{{ attributes.addClass(classes) }}>
- <span class="visually-hidden">
- {% if style == 'asc' -%}
- {{ 'Sort ascending'|t }}
- {% else -%}
- {{ 'Sort descending'|t }}
- {% endif %}
- </span>
- </span>
|