0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00

Convert form submissions listings to use the same ordering icons as other listings

This commit is contained in:
Thibaud Colas 2023-03-24 14:58:56 +00:00
parent 4c7b263010
commit 978d62122c
2 changed files with 1 additions and 19 deletions

View File

@ -697,23 +697,5 @@ td.ord {
table.listing {
th.ordered {
color: $color-teal;
&.ascending {
&:before {
content: '\25B2'; // up arrow
display: inline-block;
height: 100%;
vertical-align: middle;
}
}
&.descending {
&:before {
content: '\25BC'; // down arrow
display: inline-block;
height: 100%;
vertical-align: middle;
}
}
}
}

View File

@ -13,7 +13,7 @@
<tr>
<th><input type="checkbox" id="select-all" /></th>
{% for heading in data_headings %}
<th id="{{ heading.name }}" class="{% if heading.order %}ordered {{ heading.order }}{% endif %}">
<th id="{{ heading.name }}" class="{% if heading.order %}ordered icon {% if heading.order == 'ascending' %}icon-arrow-up-after{% else %}icon-arrow-down-after{% endif %}{% endif %}">
{% if heading.order %}<a href="?order_by={% if heading.order == 'ascending' %}-{% endif %}{{ heading.name }}">{{ heading.label }}</a>{% else %}{{ heading.label }}{% endif %}
</th>
{% endfor %}