{% extends 'partials/base.html.twig' %} {% set title = "PLUGIN_ADMIN.DASHBOARD"|t %} {% set clear_cache_url = base_url_relative ~ '/cache.json/task' ~ config.system.param_sep ~ 'clearCache'|e('html_attr') %} {% block titlebar %}
{% if authorize(['admin.maintenance', 'admin.super', 'admin.cache']) %}
{% endif %} {% if authorize(['admin.maintenance', 'admin.super']) %} {% endif %}

{{ "PLUGIN_ADMIN.DASHBOARD"|t }}

{% endblock %} {% block widgets %} {% if config.plugins.admin.notifications.dashboard %}
{% endif %} {# System notifications, cannot be turned off #} {% include 'partials/dashboard-problems.html.twig' %}
{% if grav.twig.plugins_hooked_dashboard_widgets_top %} {% for widget in grav.twig.plugins_hooked_dashboard_widgets_top %} {% if attribute(config.plugins.admin.widgets_display, widget.template)|string in ['1', 'true'] %}
{% include 'partials/' ~ widget.template ~ '.html.twig' %}
{% endif %} {% endfor %} {% endif %}
{% endblock %} {% block content %} {%- if grav.twig.plugins_hooked_dashboard_widgets_main -%} {%- for widget in grav.twig.plugins_hooked_dashboard_widgets_main -%} {% if attribute(config.plugins.admin.widgets_display, widget.template)|string in ['1', 'true'] %} {% include 'partials/' ~ widget.template ~ '.html.twig' %} {% endif -%} {%- endfor -%} {%- endif -%} {% endblock %} {% block content_bottom %}
{%- if grav.twig.plugins_hooked_dashboard_widgets_bottom -%} {%- for widget in grav.twig.plugins_hooked_dashboard_widgets_bottom -%} {% if attribute(config.plugins.admin.widgets_display, widget.template)|string in ['1', 'true'] %} {% include 'partials/' ~ widget.template ~ '.html.twig' %} {% endif -%} {%- endfor -%} {%- endif -%}
{% endblock %}