From bd8c52941ad642d196e1c51d8d8c632d0b759a7c Mon Sep 17 00:00:00 2001 From: Gregoo Date: Tue, 4 Feb 2025 08:47:38 +0100 Subject: [PATCH] Move grid filters and sort to their own files (plus cosmetics) --- templates/set/filter.html | 87 ++++++++++++++++++++++++++++ templates/set/sort.html | 25 ++++++++ templates/sets.html | 116 +------------------------------------- 3 files changed, 115 insertions(+), 113 deletions(-) create mode 100644 templates/set/filter.html create mode 100644 templates/set/sort.html diff --git a/templates/set/filter.html b/templates/set/filter.html new file mode 100644 index 0000000..65c3343 --- /dev/null +++ b/templates/set/filter.html @@ -0,0 +1,87 @@ +
+
+ +
+ Status + +
+
+
+ +
+ Theme + +
+
+ {% if brickset_owners | length %} +
+ +
+ Owner + +
+
+ {% endif %} + {% if brickset_storages | length %} +
+ +
+ Storage + +
+
+ {% endif %} + {% if brickset_tags | length %} +
+ +
+ Tag + +
+
+ {% endif %} +
diff --git a/templates/set/sort.html b/templates/set/sort.html new file mode 100644 index 0000000..09f31f0 --- /dev/null +++ b/templates/set/sort.html @@ -0,0 +1,25 @@ +
+
+
+ Sort + + + + + + + + + +
+
+
diff --git a/templates/sets.html b/templates/sets.html index 60101b5..5af93c9 100644 --- a/templates/sets.html +++ b/templates/sets.html @@ -9,7 +9,7 @@
- Search + Search
@@ -28,118 +28,8 @@ -
-
-
- Sort - - - - - - - - - -
-
-
-
-
- -
- Status - -
-
-
- -
- Theme - -
-
- {% if brickset_owners | length %} -
- -
- Owner - -
-
- {% endif %} - {% if brickset_storages | length %} -
- -
- Storage - -
-
- {% endif %} - {% if brickset_tags | length %} -
- -
- Tag - -
-
- {% endif %} -
+ {% include 'set/sort.html' %} + {% include 'set/filter.html' %}
{% for item in collection %}