From 25c13ef14e55d664cfb2c1abe0eaf8e3288e7c00 Mon Sep 17 00:00:00 2001
From: Stephen Finucane
Date: Wed, 6 Jun 2018 15:50:49 +0100
Subject: [PATCH] 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
---
patchwork/templates/patchwork/bundle.html | 2 +-
patchwork/templates/patchwork/list.html | 2 +-
.../patchwork/{ => partials}/download-buttons.html | 0
patchwork/templates/patchwork/{ => partials}/filters.html | 0
.../templates/patchwork/{ => partials}/pagination.html | 0
.../templates/patchwork/{ => partials}/patch-list.html | 6 +++---
patchwork/templates/patchwork/submission.html | 4 ++--
patchwork/templates/patchwork/todo-list.html | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
rename patchwork/templates/patchwork/{ => partials}/download-buttons.html (100%)
rename patchwork/templates/patchwork/{ => partials}/filters.html (100%)
rename patchwork/templates/patchwork/{ => partials}/pagination.html (100%)
rename patchwork/templates/patchwork/{ => partials}/patch-list.html (98%)
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" %}