diff --git a/links/templates/links/link_list.html b/links/templates/links/link_list.html new file mode 100644 index 0000000..981f830 --- /dev/null +++ b/links/templates/links/link_list.html @@ -0,0 +1,48 @@ +{% extends 'base.html' %} + +{% block content %} +
+ {% if object_list %} +{#
#} +{#

Filter by category group:

#} +{# All#} +{# {% for cat in category_groups %}#} +{# •#} +{# {{ cat.title }}#} +{# {% endfor %}#} +{#
#} +{#
#} +
+ {% for cat in object_list %} +
+
{{ cat.title }}
+
+ {% for subcat in cat.children.all %} +
+
{{ subcat.title }}
+
+ {% for link in subcat.links.all %} +
+ {{ link.title }} + {% if link.introduction %} +

{{ link.introduction|linebreaksbr }}

+ {% endif %} +
+ {% endfor %} +
+ {% endfor %} +
+ {% endfor %} +
+ {% else %} +
+

Oh No!

+
I haven't added any links yet.
+

(sorry not sorry)

+
+ {% endif %} + {% if page_obj.has_previous or page_obj.has_next %} + {% include 'pagination.html' %} + {% endif %} +
+{% endblock %}