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

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-18 08:24:46 -08:00
parent dbbae97038
commit 2feb9b90b2
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
6 changed files with 7 additions and 7 deletions

View file

@ -67,7 +67,7 @@
singular = "%d package found.", singular = "%d package found.",
plural = "%d packages found.", plural = "%d packages found.",
prefix = "/packages" %} prefix = "/packages" %}
{% include "partials/widgets/pager.html" %} {% include "partials/pager.html" %}
{% endwith %} {% endwith %}
{# Package action form: persists query parameters. #} {# Package action form: persists query parameters. #}
@ -84,7 +84,7 @@
singular = "%d package found.", singular = "%d package found.",
plural = "%d packages found.", plural = "%d packages found.",
prefix = "/packages" %} prefix = "/packages" %}
{% include "partials/widgets/pager.html" %} {% include "partials/pager.html" %}
{% endwith %} {% endwith %}
{% if request.user.is_authenticated() %} {% if request.user.is_authenticated() %}

View file

@ -51,5 +51,5 @@
{% if request.user.is_authenticated() %} {% if request.user.is_authenticated() %}
<!-- Include "My Statistics" --> <!-- Include "My Statistics" -->
{% include 'partials/widgets/statistics.html' %} {% include 'partials/statistics.html' %}
{% endif %} {% endif %}

View file

@ -8,7 +8,7 @@
{% if not total %} {% if not total %}
<p>{{ "No requests matched your search criteria." | tr }}</p> <p>{{ "No requests matched your search criteria." | tr }}</p>
{% else %} {% else %}
{% include "partials/widgets/pager.html" %} {% include "partials/pager.html" %}
<table class="results"> <table class="results">
<thead> <thead>
<tr> <tr>
@ -121,7 +121,7 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% include "partials/widgets/pager.html" %} {% include "partials/pager.html" %}
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -142,7 +142,7 @@ def test_pager_no_results():
""" Test the pager partial with no results. """ """ Test the pager partial with no results. """
num_packages = 0 num_packages = 0
context = pager_context(num_packages) 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) root = parse_root(body)
stats = root.xpath('//div[@class="pkglist-stats"]/p') stats = root.xpath('//div[@class="pkglist-stats"]/p')
@ -154,7 +154,7 @@ def test_pager():
""" Test the pager partial with two pages of results. """ """ Test the pager partial with two pages of results. """
num_packages = 100 num_packages = 100
context = pager_context(num_packages) 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) root = parse_root(body)
stats = root.xpath('//div[@class="pkglist-stats"]/p') stats = root.xpath('//div[@class="pkglist-stats"]/p')