initials_row.twig 1.2 KB

1234567891011121314151617181920212223242526
  1. <nav aria-label="{% trans 'Pagination of user accounts' %}">
  2. <ul id="userAccountsPagination" class="pagination">
  3. {% for tmp_initial, initial_was_found in array_initials %}
  4. {% if tmp_initial is not same as(null) %}
  5. {% if initial_was_found %}
  6. <li class="page-item{{ initial is same as(tmp_initial) ? ' active' }}"{{ initial is same as(tmp_initial) ? ' aria-current="page"' }}>
  7. <a class="page-link" href="{{ url('/server/privileges', {'viewing_mode': viewing_mode, 'initial': tmp_initial}) }}">
  8. {% if tmp_initial is same as('') %}
  9. <span class="text-danger text-nowrap">{{ 'Any' |trans }}</span>
  10. {% else %}
  11. {{ tmp_initial }}
  12. {% endif %}
  13. </a>
  14. </li>
  15. {% else %}
  16. <li class="page-item disabled">
  17. <a class="page-link" href="#" tabindex="-1" aria-disabled="true">{{ tmp_initial }}</a>
  18. </li>
  19. {% endif %}
  20. {% endif %}
  21. {% endfor %}
  22. <li class="page-item">
  23. <a class="page-link text-nowrap" href="{{ url('/server/privileges', {'viewing_mode': viewing_mode, 'showall': true}) }}">{% trans 'Show all' %}</a>
  24. </li>
  25. </ul>
  26. </nav>