Skip to content

Commit

Permalink
Reintroduce underscores for partial file names
Browse files Browse the repository at this point in the history
  • Loading branch information
hanopcan committed Aug 11, 2023
1 parent 3f68121 commit 4a921b5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/greencheck/tests/test_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_templates_in_filter_view(client, hosting_provider_factory):
# and: we should see the "has results" template in our list of templates
# in use
templates = [tpl.name for tpl in res.templates]
assert "greencheck/partials/directory_results.html" in templates
assert "greencheck/partials/_directory_results.html" in templates


@pytest.mark.django_db
Expand All @@ -79,4 +79,4 @@ def test_fallback_when_no_filter_view_has_no_results(client, hosting_provider_fa
# and: we should see the "no results" template in our list of templates
# in use
templates = [tpl.name for tpl in res.templates]
assert "greencheck/partials/directory_no_results.html" in templates
assert "greencheck/partials/_directory_no_results.html" in templates
8 changes: 4 additions & 4 deletions apps/theme/templates/greencheck/directory_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ <h2 class="text-5xl md:text-disp-sm md:mt-6 pb-4">I'm looking for</h2>

<section class="main-content container mx-auto md:mb-8 mt-4 lg:mt-6">
{% if not ordered_results %}
{% include "greencheck/partials/directory_no_results.html" %}
{% include "greencheck/partials/_directory_no_results.html" %}
{% else %}
{% include "greencheck/partials/directory_results.html" %}
{% include "greencheck/partials/_directory_results.html" %}
{% endif %}
</section>

{% include "greencheck/partials/directory_ctas.html" %}
{% include "greencheck/partials/_directory_ctas.html" %}

{% endblock %}

{% block footer-content %}
{% include "greencheck/partials/directory_footer.html" %}
{% include "greencheck/partials/_directory_footer.html" %}
{% endblock %}

0 comments on commit 4a921b5

Please sign in to comment.