File: initials_row.twig

package info (click to toggle)
phpmyadmin 4%3A5.2.2-really%2Bdfsg-1%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 140,312 kB
  • sloc: javascript: 228,455; php: 166,904; xml: 17,847; sql: 504; sh: 275; makefile: 209; python: 205
file content (26 lines) | stat: -rw-r--r-- 1,209 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<nav aria-label="{% trans 'Pagination of user accounts' %}">
  <ul id="userAccountsPagination" class="pagination">
    {% for tmp_initial, initial_was_found in array_initials %}
      {% if tmp_initial is not same as(null) %}
        {% if initial_was_found %}
          <li class="page-item{{ initial is same as(tmp_initial) ? ' active' }}"{{ initial is same as(tmp_initial) ? ' aria-current="page"' }}>
            <a class="page-link" href="{{ url('/server/privileges', {'viewing_mode': viewing_mode, 'initial': tmp_initial}) }}">
            {% if tmp_initial is same as('') %}
              <span class="text-danger text-nowrap">{{ 'Any' |trans }}</span>
            {% else %}
              {{ tmp_initial }}
            {% endif %}
            </a>
          </li>
        {% else %}
          <li class="page-item disabled">
            <a class="page-link" href="#" tabindex="-1" aria-disabled="true">{{ tmp_initial }}</a>
          </li>
        {% endif %}
      {% endif %}
    {% endfor %}
    <li class="page-item">
      <a class="page-link text-nowrap" href="{{ url('/server/privileges', {'viewing_mode': viewing_mode, 'showall': true}) }}">{% trans 'Show all' %}</a>
    </li>
  </ul>
</nav>