diff --git a/mayan/apps/appearance/templates/appearance/generic_list_horizontal.html b/mayan/apps/appearance/templates/appearance/generic_list_horizontal.html index 94c10d0dea..b3c91f3bd5 100644 --- a/mayan/apps/appearance/templates/appearance/generic_list_horizontal.html +++ b/mayan/apps/appearance/templates/appearance/generic_list_horizontal.html @@ -14,7 +14,7 @@ {% for object_navigation_links in resolved_links %} {% include 'navigation/generic_navigation.html' %} {% empty %} -
+
{% include 'appearance/no_results.html' %}
{% endfor %} diff --git a/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html b/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html index a8559717b4..8386f9d7f9 100644 --- a/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html +++ b/mayan/apps/appearance/templates/appearance/generic_list_items_subtemplate.html @@ -6,110 +6,112 @@| + {% endif %} + + {% if not hide_object %} + | {% trans 'Identifier' %} | + {% endif %} + + {% if not hide_columns %} + {% for column in object_list|get_source_columns %} +{{ column.label }} | + {% endfor %} + {% endif %} + + {% for column in extra_columns %} +{{ column.name }} | + {% endfor %} + + {% if not hide_links %} ++ {% endif %} + | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {% if multi_select_item_properties %} + + {% else %} + + {% endif %} + | + {% endif %} {% if not hide_object %} -{% trans 'Identifier' %} | - {% endif %} - - {% if not hide_columns %} - {% for column in object_list|get_source_columns %} -{{ column.label }} | - {% endfor %} - {% endif %} - - {% for column in extra_columns %} -{{ column.name }} | - {% endfor %} - - {% if not hide_links %} -- {% endif %} - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - {% if multi_select_item_properties %} - - {% else %} - - {% endif %} - | - {% endif %} - {% if not hide_object %} - {% if main_object %} - {% with object|object_property:main_object as object %} + {% if main_object %} + {% with object|object_property:main_object as object %} +{% if not hide_link %}{{ object }}{% else %}{{ object }}{% endif %} | + {% endwith %} + {% else %}{% if not hide_link %}{{ object }}{% else %}{{ object }}{% endif %} | - {% endwith %} - {% else %} -{% if not hide_link %}{{ object }}{% else %}{{ object }}{% endif %} | + {% endif %} {% endif %} - {% endif %} - {% if not hide_columns %} - {% for column in object|get_source_columns %} -{% source_column_resolve column=column %}{{ column_result }} | + {% if not hide_columns %} + {% for column in object|get_source_columns %} +{% source_column_resolve column=column %}{{ column_result }} | + {% endfor %} + {% endif %} + {% for column in extra_columns %} +{{ object|object_property:column.attribute }} | {% endfor %} - {% endif %} - {% for column in extra_columns %} -{{ object|object_property:column.attribute }} | - {% endfor %} - {% if not hide_links %} -- {% get_menu_links 'object list facet' sort_results=True source=object as resolved_links %} - {% for object_navigation_links in resolved_links %} - {% with 'true' as horizontal %} - {% with 'true' as hide_icon %} - {% include 'navigation/generic_navigation.html' %} - {% endwith %} - {% endwith %} - {% endfor %} - {% get_menu_links 'object menu' source=object as resolved_links %} - {% for object_navigation_links in resolved_links %} - {% with 'true' as horizontal %} - {% with 'true' as hide_icon %} - {% include 'navigation/generic_navigation.html' %} - {% endwith %} - {% endwith %} - {% endfor %} - | - {% endif %} -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - {% include 'appearance/no_results.html' %} - | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||