From: Stephen Finucane Date: Wed, 6 Jun 2018 14:50:49 +0000 (+0100) Subject: templates: Keep only whole templates in the top-level X-Git-Tag: v2.2.0-rc1~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25c13ef14e55d664cfb2c1abe0eaf8e3288e7c00;p=thirdparty%2Fpatchwork.git templates: Keep only whole templates in the top-level Again, this should make this a little more understandable as it ensures a rough mapping exists between views and template names. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/templates/patchwork/bundle.html b/patchwork/templates/patchwork/bundle.html index 2042cb96..b5c9f90a 100644 --- a/patchwork/templates/patchwork/bundle.html +++ b/patchwork/templates/patchwork/bundle.html @@ -40,6 +40,6 @@ project.

{% endif %} -{% include "patchwork/patch-list.html" %} +{% include "patchwork/partials/patch-list.html" %} {% endblock %} diff --git a/patchwork/templates/patchwork/list.html b/patchwork/templates/patchwork/list.html index 180c5607..5d3d82aa 100644 --- a/patchwork/templates/patchwork/list.html +++ b/patchwork/templates/patchwork/list.html @@ -18,6 +18,6 @@ while updating patches:

{% endif %} -{% include "patchwork/patch-list.html" %} +{% include "patchwork/partials/patch-list.html" %} {% endblock %} diff --git a/patchwork/templates/patchwork/download-buttons.html b/patchwork/templates/patchwork/partials/download-buttons.html similarity index 100% rename from patchwork/templates/patchwork/download-buttons.html rename to patchwork/templates/patchwork/partials/download-buttons.html diff --git a/patchwork/templates/patchwork/filters.html b/patchwork/templates/patchwork/partials/filters.html similarity index 100% rename from patchwork/templates/patchwork/filters.html rename to patchwork/templates/patchwork/partials/filters.html diff --git a/patchwork/templates/patchwork/pagination.html b/patchwork/templates/patchwork/partials/pagination.html similarity index 100% rename from patchwork/templates/patchwork/pagination.html rename to patchwork/templates/patchwork/partials/pagination.html diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/partials/patch-list.html similarity index 98% rename from patchwork/templates/patchwork/patch-list.html rename to patchwork/templates/patchwork/partials/patch-list.html index 71c1ba92..53d577de 100644 --- a/patchwork/templates/patchwork/patch-list.html +++ b/patchwork/templates/patchwork/partials/patch-list.html @@ -4,9 +4,9 @@ {% load project %} {% load static %} -{% include "patchwork/filters.html" %} +{% include "patchwork/partials/filters.html" %} -{% include "patchwork/pagination.html" %} +{% include "patchwork/partials/pagination.html" %} {% if order.editable %} @@ -218,7 +218,7 @@ $(document).ready(function() {
{% if page.paginator.count %} -{% include "patchwork/pagination.html" %} +{% include "patchwork/partials/pagination.html" %}
diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html index 6e189b27..eb5e3583 100644 --- a/patchwork/templates/patchwork/submission.html +++ b/patchwork/templates/patchwork/submission.html @@ -28,7 +28,7 @@ function toggle_div(link_id, headers_id)

{{ submission.name }} -{% include "patchwork/download-buttons.html" %} +{% include "patchwork/partials/download-buttons.html" %}

@@ -285,7 +285,7 @@ function toggle_div(link_id, headers_id) {% if submission.diff %}

Patch - {% include "patchwork/download-buttons.html" %} + {% include "patchwork/partials/download-buttons.html" %}

diff --git a/patchwork/templates/patchwork/todo-list.html b/patchwork/templates/patchwork/todo-list.html index 444baa01..1ec2713d 100644 --- a/patchwork/templates/patchwork/todo-list.html +++ b/patchwork/templates/patchwork/todo-list.html @@ -12,6 +12,6 @@ are in an "action required" state ({% for state in action_required_states %}{% if forloop.last and not forloop.first %} or {% endif %}{{ state }}{% if not forloop.last and not forloop.first %}, {%endif %}{% endfor %}), and are not archived.

-{% include "patchwork/patch-list.html" %} +{% include "patchwork/partials/patch-list.html" %} {% endblock %}