diff --git a/site/plugins/admin/templates/partials/base.html b/site/plugins/admin/templates/partials/base.html index d774b4d1..6d5d8f48 100644 --- a/site/plugins/admin/templates/partials/base.html +++ b/site/plugins/admin/templates/partials/base.html @@ -1,21 +1,25 @@ - - {% block head %} - - - - - + + {% block head %} + + + + + - {% do emitter.emit('onAdminThemeMeta') %} + {% do + emitter.emit('onAdminThemeMeta') %} - FLEXTYPE + FLEXTYPE - + + + + - {# + {# {% set admin_build = base_url() ~ '/site/plugins/admin/assets/dist/css/admin-build.min.css' %} {% set admin_elegant = base_url() ~ '/site/plugins/admin/assets/dist/css/elegant.css' %} {% set admin_light = base_url() ~ '/site/plugins/admin/assets/dist/css/admin-light.min.css' %} @@ -33,18 +37,19 @@ #} - + - {% set admin_build = base_url() ~ '/site/plugins/admin/assets/dist/css/build.min.css' %} - {% do assets.add('css', admin_build, 'admin', 1) %} + {% set admin_build = base_url() ~ '/site/plugins/admin/assets/dist/css/build.min.css' %} + {% do + assets.add('css', admin_build, 'admin', 1) %} - {% for assets_admin in assets.get('css', 'admin') %} - {% for assets_by_priorities in assets_admin %} - + {% for assets_admin in assets.get('css', 'admin') %} + {% for assets_by_priorities in assets_admin %} + + {% endfor %} {% endfor %} - {% endfor %} - {# + {# #} - - {% do emitter.emit('onAdminThemeHeader') %} - {% endblock %} - - -
- -
-
-
+ {% do + emitter.emit('onAdminThemeHeader') %} + {% endblock %} + + +
+ +
+
+
{% if links or buttons %} {% if links %} -
- {% for link in links %} - + {% for link in links %} + {{ link.title }} {% endfor %} - >{{ link.title }} - {% endfor %} -
+
{% endif %} {% if buttons %} -
- {% for button in buttons %} - {% if button.type == 'action' %} - + {% for button in buttons %} + {% if button.type == 'action' %} + - {{ button.title }} - - - {% else %} - + {{ button.title }} + + + {% else %} + {{ button.title|raw }} + {% endif %} {% endfor %} - >{{ button.title|raw }} - {% endif %} - {% endfor %} -
+
{% endif %} {% endif %} -
-
- {% if is_current_path('admin.entries.index') or - is_current_path('admin.entries.edit') or - is_current_path('admin.entries.add') or - is_current_path('admin.entries.move') or - is_current_path('admin.entries.rename') or +
+
+
+ {% if is_current_path('admin.entries.index')or + is_current_path('admin.entries.edit')or + is_current_path('admin.entries.add')or + is_current_path('admin.entries.move')or + is_current_path('admin.entries.rename')or is_current_path('admin.entries.type') %} - {% for part in parts %} - {% set i = i - 1 %} - {% if (part != last) %} - / {{ part }} - {% else %} - / {{ part }} - {% endif %} - {% endfor %} - {% endif %} + {% for part in parts %} + {% set i = i - 1 %} + {% if (part != last) %} + + / + {{ part }} + {% else %} + / + {{ part }} + {% endif %} + {% endfor %} + {% endif %} - {% if is_current_path('admin.themes.index') or - is_current_path('admin.templates.index') or - is_current_path('admin.templates.edit') or - is_current_path('admin.templates.rename') or + {% if is_current_path('admin.themes.index')or + is_current_path('admin.templates.index')or + is_current_path('admin.templates.edit')or + is_current_path('admin.templates.rename')or is_current_path('admin.templates.add') %} - / {{ theme }} {% if id %} / {{ id }}{% endif %} - {% endif %} + / + {{ theme }} + {% if id %} + / + {{ id }} + {% endif %} + {% endif %} - {% if is_current_path('admin.api.index') or - is_current_path('admin.api_tokens.index') or - is_current_path('admin.api_tokens.add') or + {% if is_current_path('admin.api.index')or + is_current_path('admin.api_tokens.index')or + is_current_path('admin.api_tokens.add')or is_current_path('admin.api_tokens.edit') %} - / {{ api }} - {% endif %} + / + {{ api }} + {% endif %} - {% if is_current_path('admin.themes.information') or + {% if is_current_path('admin.themes.information')or is_current_path('admin.themes.settings') %} - {% if id %} / {{ id }}{% endif %} - {% endif %} + {% if id %} + / + {{ id }} + {% endif %} + {% endif %} - {% if is_current_path('admin.fieldsets.index') or - is_current_path('admin.fieldsets.edit') or - is_current_path('admin.fieldsets.rename') or - is_current_path('admin.fieldsets.add') or - is_current_path('admin.snippets.index') or - is_current_path('admin.snippets.edit') or - is_current_path('admin.snippets.rename') or + {% if is_current_path('admin.fieldsets.index')or + is_current_path('admin.fieldsets.edit')or + is_current_path('admin.fieldsets.rename')or + is_current_path('admin.fieldsets.add')or + is_current_path('admin.snippets.index')or + is_current_path('admin.snippets.edit')or + is_current_path('admin.snippets.rename')or is_current_path('admin.snippets.add') %} - / {{ id }} - {% endif %} + / + {{ id }} + {% endif %} - {% if is_current_path('admin.plugins.index') or - is_current_path('admin.plugins.information') or + {% if is_current_path('admin.plugins.index')or + is_current_path('admin.plugins.information')or is_current_path('admin.plugins.settings') %} - / {{ id }} - {% endif %} -
-
-
- {% block content %}{% endblock %} -
-
-
- - + / + {{ id }} + {% endif %} + +
+ {% if is_current_path('admin.entries.index') %} + + + + + + + + + {% endif %} +
+ + +
+ {% block content %}{% endblock %} +
+ + + + + + + + + \ No newline at end of file