- {% for tag in tags %}
- {% if tag.slug == active_tag_slug %}
-
- {{ tag.name }}
-
- {% else %}
- {{ tag.name }}
- {% endif %}
- {% endfor %}
-
-
-
-
-
-
- {% endif %}
-
-
-
-
-
- {% for obj in category.documents.all %}
- {% include 'documentation/partials/content_summary.html' with obj=obj kind='document' only %}
- {% endfor %}
-
-
-
-
-
+ {% include 'documentation/document_list.html' with category=category documents=documents tags=tags active_tag_slug=active_tag_slug only %}
{% endblock content %}
diff --git a/lacommunaute/templates/documentation/category_list.html b/lacommunaute/templates/documentation/category_list.html
index 6597f8429..f323e23aa 100644
--- a/lacommunaute/templates/documentation/category_list.html
+++ b/lacommunaute/templates/documentation/category_list.html
@@ -23,7 +23,7 @@
{% for category in categories %}
- {% include 'documentation/partials/content_summary.html' with obj=category kind='category' only %}
+ {% include 'documentation/partials/content_summary.html' with obj=category only %}
{% endfor %}
diff --git a/lacommunaute/templates/documentation/document_list.html b/lacommunaute/templates/documentation/document_list.html
new file mode 100644
index 000000000..910c323bc
--- /dev/null
+++ b/lacommunaute/templates/documentation/document_list.html
@@ -0,0 +1,60 @@
+
+ {% for tag in tags %}
+ {% if tag.slug == active_tag_slug %}
+
+ {{ tag.name }}
+
+ {% else %}
+ {{ tag.name }}
+ {% endif %}
+ {% endfor %}
+
+
+
+
+
+
+ {% endif %}
+
+
+
+
+
+ {% for document in documents %}
+ {% include 'documentation/partials/content_summary.html' with obj=document category=category only %}
+ {% endfor %}
+
+
+
+
+
+
diff --git a/lacommunaute/templates/documentation/partials/content_summary.html b/lacommunaute/templates/documentation/partials/content_summary.html
index 10446561d..ce07e5365 100644
--- a/lacommunaute/templates/documentation/partials/content_summary.html
+++ b/lacommunaute/templates/documentation/partials/content_summary.html
@@ -13,8 +13,8 @@
{% if obj.short_description %}