@@ -193,4 +187,5 @@
{{ actionslib.script(_gettext('Please select at least one file.'),
actions,
actions_confirmation) }}
+
{% endblock %}
diff --git a/advlabdb/templates/admin/file/modals/form.html b/advlabdb/templates/admin/file/modals/form.html
index 68d2f87..eebc699 100644
--- a/advlabdb/templates/admin/file/modals/form.html
+++ b/advlabdb/templates/admin/file/modals/form.html
@@ -4,8 +4,8 @@
{% block body %}
{# content added to modal-content #}
{% block fa_form %}
@@ -15,5 +15,5 @@
{% endblock %}
{% block tail %}
-
+
{% endblock %}
diff --git a/advlabdb/templates/admin/layout.html b/advlabdb/templates/admin/layout.html
index a2f63ea..0ffb212 100644
--- a/advlabdb/templates/admin/layout.html
+++ b/advlabdb/templates/admin/layout.html
@@ -1,20 +1,21 @@
{% macro menu_icon(item) -%}
-{% set icon_type = item.get_icon_type() %}
-{%- if icon_type %}
- {% set icon_value = item.get_icon_value() %}
- {% if icon_type == 'glyph' %}
-
- {% elif icon_type == 'fa' %}
-
- {% elif icon_type == 'image' %}
-
- {% elif icon_type == 'image-url' %}
-
+ {% set icon_type = item.get_icon_type() %}
+ {%- if icon_type %}
+ {% set icon_value = item.get_icon_value() %}
+ {% if icon_type == 'glyph' %}
+
+ {% elif icon_type == 'fa' %}
+
+ {% elif icon_type == 'image' %}
+
+ {% elif icon_type == 'image-url' %}
+
+ {% endif %}
{% endif %}
-{% endif %}
{%- endmacro %}
{% macro menu(menu_root=None) %}
+ {% set is_main_nav = menu_root == None %}
{% if menu_root is none %}{% set menu_root = admin_view.admin.menu() %}{% endif %}
{%- for item in menu_root %}
{%- if item.is_category() -%}
@@ -22,49 +23,52 @@
{%- if children %}
{% set class_name = item.get_class_name() or '' %}
{%- if item.is_active(admin_view) %}
-
- {% else -%}
-
+
+ {% else -%}
+
{%- endif %}
-
- {% if item.class_name %} {% endif %}
- {{ menu_icon(item) }}{{ item.name }}
- {%- if 'dropdown-submenu' in class_name -%}
-
- {%- else -%}
-
- {%- endif -%}
-
-
+
+ {%- endif %}
+ {%- endfor %}
+
+
{% endif %}
{%- else %}
{%- if item.is_accessible() and item.is_visible() -%}
{% set class_name = item.get_class_name() %}
{%- if item.is_active(admin_view) %}
-
- {%- else %}
-
+
+ {%- else %}
+
{%- endif %}
- {{ menu_icon(item) }}{{ item.name }}
-
+
+ {{ menu_icon(item) }}{{ item.name }}
+
{%- endif -%}
{% endif -%}
{% endfor %}
@@ -76,7 +80,8 @@
{% set class_name = item.get_class_name() %}
{% if item.is_accessible() and item.is_visible() %}
- {{ menu_icon(item) }}{{ item.name }}
+
+ {{ menu_icon(item) }}{{ item.name }}
{% endif %}
{% endfor %}
@@ -87,15 +92,15 @@
{% if messages %}
{% for category, m in messages %}
{% if category %}
- {# alert-error changed to alert-danger in bootstrap 3, mapping is for backwards compatibility #}
- {% set mapping = {'message': 'info', 'error': 'danger'} %}
-
+ {# alert-error changed to alert-danger in bootstrap 3, mapping is for backwards compatibility #}
+ {% set mapping = {'message': 'info', 'error': 'danger'} %}
+
{% else %}
-
+
{% endif %}
-
- {{ m }}
-
+
+ {{ m }}
+
{% endfor %}
{% endif %}
{% endwith %}
diff --git a/advlabdb/templates/admin/lib.html b/advlabdb/templates/admin/lib.html
index 6bfdb05..40db5bb 100644
--- a/advlabdb/templates/admin/lib.html
+++ b/advlabdb/templates/admin/lib.html
@@ -22,52 +22,52 @@
{% endif %}
{% if min > 0 %}
-
- «
+
+ «
{% else %}
-
- «
+
+ «
{% endif %}
{% if page > 0 %}
-
- <
+
+ <
{% else %}
-
- <
+
+ <
{% endif %}
{% for p in range(min, max) %}
{% if page == p %}
-
- {{ p + 1 }}
+
+ {{ p + 1 }}
{% else %}
-
- {{ p + 1 }}
+
+ {{ p + 1 }}
{% endif %}
{% endfor %}
{% if page + 1 < pages %}
-
- >
+
+ >
{% else %}
-
- >
+
+ >
{% endif %}
{% if max < pages %}
-
- »
+
+ »
{% else %}
-
- »
+
+ »
{% endif %}
@@ -77,20 +77,20 @@
{% macro simple_pager(page, have_next, generator) -%}