{% extends 'partials/base.html.twig' %} {% set configurations = admin.configurations(true) %} {% set config_slug = admin.route %} {% if not config_slug %} {% set config_slug = configurations|first %} {% do admin.redirect('config/' ~ config_slug, 302) %} {% endif %} {% set isInfo = (config_slug == 'info') %} {% set tab_title_string = "PLUGIN_ADMIN." ~ config_slug|upper %} {% set tab_title = (tab_title_string|tu == tab_title_string ? config_slug|capitalize : tab_title_string|tu) ?: 'Not Found' %} {% set title = "PLUGIN_ADMIN.CONFIGURATION"|tu ~ ": " ~ tab_title %} {% if config_slug and not isInfo %} {% set data = admin.data('config/' ~ config_slug) %} {% endif %} {% block stylesheets %} {% do assets.addCss(theme_url ~ '/css/codemirror/codemirror.css') %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block titlebar %}
{{ "PLUGIN_ADMIN.BACK"|tu }} {% if data.file.filename %} {% endif %}

{{ "PLUGIN_ADMIN.CONFIGURATION"|tu }} - {{ tab_title }}

{% endblock %} {% block content_top %} {% if authorize('admin.super') and data.file.filename %}
{{ "PLUGIN_ADMIN.SAVE_LOCATION"|tu }}: {{ data.file.filename|replace({(base_path):''}) }}
{% endif %}
{% for configuration in configurations %} {% set configuration_string = "PLUGIN_ADMIN." ~ configuration|upper %} {{ (configuration_string|tu == configuration_string ? configuration|capitalize : configuration_string|tu) }} {% endfor %}
{% endblock %} {% block content %} {% set accessChangelog = authorize(['admin.maintenance', 'admin.super']) %} {% if config_slug in configurations %} {% if isInfo %}
{% if accessChangelog %}
View Grav Changelog
{% endif %} {{ admin.phpinfo|raw }}
{% else %}
{% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %}
{% endif %} {% include 'partials/modal-changes-detected.html.twig' %} {% if accessChangelog %} {% include 'partials/modal-changelog.html.twig' %} {% endif %} {% else %} {% do page.modifyHeader('http_response_code', 404) %}

Not found

{% endif %} {% endblock %}