summaryrefslogtreecommitdiff
path: root/templates/packages/search_paginator.html
blob: a748d26bbf3fb5c92bada8c98db9ec199bcb797b (plain)
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
27
<div class="pkglist-stats">
    {% if is_paginated %}
    <p>{{ paginator.count }} matching packages found.
    Page {{ page_obj.number }} of {{ paginator.num_pages }}.</p>

    <div class="pkglist-nav">
    <span class="prev">
        {% if page_obj.has_previous %}
        <a href="?page={{ page_obj.previous_page_number }}&amp;{{ current_query }}"
            title="Go to previous page">&lt; Prev</a>
        {% else %}
        &lt; Prev
        {% endif %}
    </span>
    <span class="next">
        {% if page_obj.has_next %}
        <a href="?page={{ page_obj.next_page_number }}&amp;{{ current_query }}"
            title="Go to next page">Next &gt;</a>
        {% else %}
        Next &gt;
        {% endif %}
    </span>
    </div>
    {% else %}
    <p>{{ package_list|length }} matching package{{ package_list|pluralize }} found.</p>
    {% endif %}
</div>