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 %}