From 92d4d5e6bc3c7a51a33839032d3e4772490304d9 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 28 Oct 2014 02:18:07 -0400 Subject: [PATCH] Only show multi item links when there are items --- .../main/generic_list_subtemplate.html | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/mayan/apps/main/templates/main/generic_list_subtemplate.html b/mayan/apps/main/templates/main/generic_list_subtemplate.html index 8151ce0b6c..34ee41c640 100644 --- a/mayan/apps/main/templates/main/generic_list_subtemplate.html +++ b/mayan/apps/main/templates/main/generic_list_subtemplate.html @@ -30,20 +30,22 @@ {% endif %}
- {% get_multi_item_links_form object_list %} - {% if multi_item_actions %} -
-
- {% with multi_item_form as form %} - {% include 'main/generic_form_instance.html' %} - {% endwith %} + {% if object_list %} + {% get_multi_item_links_form object_list %} + {% if multi_item_actions %} +
+
+ {% with multi_item_form as form %} + {% include 'main/generic_form_instance.html' %} + {% endwith %} +
+
+ +
-
- -
-
+ {% endif %} {% endif %} {% if scrollable_content %}