-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
initials_row.twig
24 lines (24 loc) · 1 KB
/
initials_row.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<nav aria-label="{{ t('Pagination of user accounts') }}">
<ul id="userAccountsPagination" class="pagination">
{% for initial, user_available in array_initials %}
{% if user_available %}
<li class="page-item{{ selected_initial is same as(initial) ? ' active' }}"{{ selected_initial is same as(initial) ? ' aria-current="page"' }}>
<a class="page-link" href="{{ url('/server/privileges', {'initial': initial}) }}">
{% if initial is same as('') %}
<span class="text-danger text-nowrap">{{ t('Any') }}</span>
{% else %}
{{ initial }}
{% endif %}
</a>
</li>
{% else %}
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1" aria-disabled="true">{{ initial }}</a>
</li>
{% endif %}
{% endfor %}
<li class="page-item">
<a class="page-link text-nowrap" href="{{ url('/server/privileges', {'showall': true}) }}">{{ t('Show all') }}</a>
</li>
</ul>
</nav>