{% extends 'partials/base.html.twig' %} {% if admin.route %} {% set installing = admin.route starts with 'install' %} {% set installed = true %} {# Try installed packages first, then remote #} {% set package = admin.themes(true)[admin.route] %} {% if (not package) %} {% set package = admin.themes(false)[admin.route] %} {% set installed = false %} {% endif %} {% set theme = package.toArray() %} {% set title = "PLUGIN_ADMIN.THEME"|tu ~ ": " ~ theme.name|e %} {% endif %} {% block titlebar %} {% if not admin.route or installing %}
{% if (installing) %} {{ "PLUGIN_ADMIN.BACK"|tu }} {% else %} {{ "PLUGIN_ADMIN.BACK"|tu }} {{ "PLUGIN_ADMIN.ADD"|tu }} {% if authorize(['admin.maintenance', 'admin.super']) %} {% endif %} {% endif %}

{{ "PLUGIN_ADMIN.THEMES"|tu }}

{% else %} {% if (installed) %}
{{ "PLUGIN_ADMIN.BACK_TO_THEMES"|tu }}
{% else %}
{{ "PLUGIN_ADMIN.BACK_TO_THEMES"|tu }}
{% endif %}

{{ "PLUGIN_ADMIN.THEME"|tu }}: {{ theme.name|e }}

{% endif %} {% endblock %} {% block content %}
{% include 'partials/messages.html.twig' %} {% if not admin.route or installing %} {% include 'partials/themes-list.html.twig' %} {% else %} {% include 'partials/themes-details.html.twig' %} {% endif %}
{% endblock %}