From 7232937014bce06434ee17c393e82a1639be2c8d Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Mon, 21 Jan 2013 07:00:03 -0600 Subject: [PATCH] Updating the admin template to support the latest django admin code --- .../admin/editor/tree_list_results.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/categories/editor/templates/admin/editor/tree_list_results.html b/categories/editor/templates/admin/editor/tree_list_results.html index e5f1784..849bbe7 100644 --- a/categories/editor/templates/admin/editor/tree_list_results.html +++ b/categories/editor/templates/admin/editor/tree_list_results.html @@ -8,10 +8,19 @@ -{% for header in result_headers %} -{% if header.sortable %}{% endif %} -{{ header.text|capfirst }} -{% if header.sortable %}{% endif %}{% endfor %} +{% for header in result_headers %}{% endfor %}
+ {% if header.sortable %} + {% if header.sort_priority > 0 %} +
+ + {% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %} + +
+ {% endif %} + {% endif %} +
{% if header.sortable %}{{ header.text|capfirst }}{% else %}{{ header.text|capfirst }}{% endif %}
+
+