Skip to content
Snippets Groups Projects
Verified Commit 2feb9b90 authored by Kevin Morris's avatar Kevin Morris
Browse files

housekeep: move templates/partials/widgets/* to templates/partials/


Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent dbbae970
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@
singular = "%d package found.",
plural = "%d packages found.",
prefix = "/packages" %}
{% include "partials/widgets/pager.html" %}
{% include "partials/pager.html" %}
{% endwith %}
{# Package action form: persists query parameters. #}
......@@ -84,7 +84,7 @@
singular = "%d package found.",
plural = "%d packages found.",
prefix = "/packages" %}
{% include "partials/widgets/pager.html" %}
{% include "partials/pager.html" %}
{% endwith %}
{% if request.user.is_authenticated() %}
......
......@@ -51,5 +51,5 @@
{% if request.user.is_authenticated() %}
<!-- Include "My Statistics" -->
{% include 'partials/widgets/statistics.html' %}
{% include 'partials/statistics.html' %}
{% endif %}
......@@ -8,7 +8,7 @@
{% if not total %}
<p>{{ "No requests matched your search criteria." | tr }}</p>
{% else %}
{% include "partials/widgets/pager.html" %}
{% include "partials/pager.html" %}
<table class="results">
<thead>
<tr>
......@@ -121,7 +121,7 @@
{% endfor %}
</tbody>
</table>
{% include "partials/widgets/pager.html" %}
{% include "partials/pager.html" %}
{% endif %}
</div>
{% endblock %}
......@@ -142,7 +142,7 @@ def test_pager_no_results():
""" Test the pager partial with no results. """
num_packages = 0
context = pager_context(num_packages)
body = base_template("partials/widgets/pager.html").render(context)
body = base_template("partials/pager.html").render(context)
root = parse_root(body)
stats = root.xpath('//div[@class="pkglist-stats"]/p')
......@@ -154,7 +154,7 @@ def test_pager():
""" Test the pager partial with two pages of results. """
num_packages = 100
context = pager_context(num_packages)
body = base_template("partials/widgets/pager.html").render(context)
body = base_template("partials/pager.html").render(context)
root = parse_root(body)
stats = root.xpath('//div[@class="pkglist-stats"]/p')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment