From 43747de032b1217fb943c363cd05b77d003cae78 Mon Sep 17 00:00:00 2001 From: smolin_in Date: Tue, 22 Jul 2014 13:04:56 +0600 Subject: [PATCH] fix for django-filer-0.9.6 (https://github.com/darklow/django-suit/issues/249) --- suit/templates/admin/filer/folder/directory_table.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/suit/templates/admin/filer/folder/directory_table.html b/suit/templates/admin/filer/folder/directory_table.html index 6cbe1a65..4d39cf78 100644 --- a/suit/templates/admin/filer/folder/directory_table.html +++ b/suit/templates/admin/filer/folder/directory_table.html @@ -15,7 +15,7 @@ - {% for item in paginated_items.object_list %} + {% for item, item_perms in paginated_items.object_list %} {% if item.file_type == 'Folder' or item.file_type == 'DummyFolder' %}{% with item as subfolder%} {% if select_folder and item.file_type == 'Folder' %}{% else %}{% if action_form and item.pk and not is_popup %}{% endif %}{% endif %} @@ -23,7 +23,7 @@ {% trans - {% if item.file_type == 'Folder' %} + {% if item.file_type == 'Folder' and item_perms.change %} {% trans "Change" %} {% endif %}
{{ subfolder.name }}
@@ -36,7 +36,7 @@ {% if is_popup and not select_folder %}{% else %}{% if action_form and not is_popup %}{% endif %}{% endif %} - {{ file.default_alt_text }} + {% if item_perms.change %}{% endif %}{{ file.default_alt_text }}{% if item_perms.change %}{% endif %} {% trans "Delete" %} @@ -46,7 +46,7 @@ {# {% if file.has_all_mandatory_data %}
0 {% trans "has all mandatory metadata" %}
{% else %}
1 {% trans "missing metadata!" %}
{% endif %} #} - + {% endwith %}{% endif %}