diff --git a/view/templates/index.html b/view/templates/index.html index faecdef..dfbd4ab 100644 --- a/view/templates/index.html +++ b/view/templates/index.html @@ -4,142 +4,12 @@ {% block body %}
-
-
-
- - -
- - - - -
-

Filter by feed

-
- -
-
- -
-
- {% for feed in feeds %} - - {% endfor %} -
- - -
-
- - -
- - {% if selected_feeds|length > 0 %} -
- -
- Feeds: {{ ", ".join(selected_feeds) }} - ✕ Clear -
-
- {% endif %} -
+ {% include "parts/filters.html" %}
- {% for diff in diffs %} - - {% endfor %} + {% include "parts/diff_list.html" %}
diff --git a/view/templates/parts/diff_list.html b/view/templates/parts/diff_list.html new file mode 100644 index 0000000..c579850 --- /dev/null +++ b/view/templates/parts/diff_list.html @@ -0,0 +1,51 @@ +{% for diff in diffs %} + + {% endfor %} diff --git a/view/templates/parts/filters.html b/view/templates/parts/filters.html new file mode 100644 index 0000000..63e4ef4 --- /dev/null +++ b/view/templates/parts/filters.html @@ -0,0 +1,81 @@ +
+
+
+ + +
+ + + + +
+

Filter by feed

+
+ +
+
+ +
+
+ {% for feed in feeds %} + + {% endfor %} +
+ + +
+
+ + +
+ + {% if selected_feeds|length > 0 %} +
+ +
+ Feeds: {{ ", ".join(selected_feeds) }} + ✕ Clear +
+
+ {% endif %} +