summaryrefslogtreecommitdiffstats
path: root/core/modules/system/templates/tablesort-indicator.html.twig
blob: 059805f1d41a285f49e18e803dd267248e9e258d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{#
/**
 * @file
 * Default theme implementation for displaying a tablesort indicator.
 *
 * Available variables:
 * - style: Either 'asc' or 'desc', indicating the sorting direction.
 *
 * @see template_preprocess_tablesort_indicator()
 *
 * @ingroup themeable
 */
#}
{% if style == 'asc' -%}
  <img src="{{ arrow_asc }}" width="13" height="13" alt="{{ 'sort ascending'|t }}" title="{{ 'sort ascending'|t }}" />
{% else -%}
  <img src="{{ arrow_desc }}" width="13" height="13" alt="{{ 'sort descending'|t }}" title="{{ 'sort descending'|t }}" />
{% endif %}