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" %}