From bc3dca3abaa8c5c51a6dcd372728f60c3c9f2ac3 Mon Sep 17 00:00:00 2001
From: Oliver This category contains {{ category.children.all|length }} child categories. This category contains {{ category.children.all|length }} child categories. This category contains {{ category.parts.all|length }} parts. This category contains {{ category.parts.all|length }} parts.
+If this category is deleted, these child categories will be moved to
+{% if category.parent %}
+the '{{ category.parent.name }}' category.
+{% else %}
+the top level 'Parts' category.
+{% endif %}
+
- If this category is deleted, these child categories will be moved to
+
+{% for cat in category.children.all %}
+
+{% endif %}
+
+{% if category.parts.all|length > 0 %}
+
{% if category.parent %}
- the '{{ category.parent.name }}' category.
+ If this category is deleted, these parts will be moved to the parent category '{{ category.parent.pathstring }}'
{% else %}
- the top level 'Parts' category.
+ If this category is deleted, these parts will be moved to the top-level category 'Parts'
{% endif %}
-
- {% for cat in category.children.all %}
-
- {% endif %}
-
- {% if category.parts.all|length > 0 %}
-
- {% if category.parent %}
- If this category is deleted, these parts will be moved to the parent category '{{ category.parent.pathstring }}'
- {% else %}
- If this category is deleted, these parts will be moved to the top-level category 'Parts'
- {% endif %}
-
- {% for part in category.parts.all %}
-
- {% endif %}
-
-{% endblock %}
\ No newline at end of file
+