{% if installing %} {% include 'partials/release-toggle.html.twig' %} {% endif %} {% include 'partials/list-sort.html.twig' with { list_view: 'themes' } %}

{{ installing ? "PLUGIN_ADMIN.AVAILABLE_THEMES"|tu : "PLUGIN_ADMIN.INSTALLED_THEMES"|tu }}

{% for slug, theme in admin.themes(not installing).toArray|ksort %} {% set state = 'inactive' %} {% if (installing) %}{% set state = 'installing' %}{% endif %} {% if (config.get('system.pages.theme') == slug) %}{% set state = 'active' %}{% endif %} {% set isTestingRelease = admin.gpm.isTestingRelease(slug) %} {% set releaseDate = theme.date ?: admin.gpm.findPackage(slug, true).date %}
{{ theme.name }} {% if admin.isTeamGrav(theme) %} {% endif %} {% if admin.isPremiumProduct(theme) %} {{ "PLUGIN_ADMIN.PREMIUM_PRODUCT"|tu }} {% endif %} {% if theme.symlink %} {% endif %} v{{ theme.version }} {% if isTestingRelease %}test release{% endif %}
{% set thumb = installing ? '//getgrav.org/images/' ~ theme.screenshot : theme.thumbnail %}
{% if (state == 'installing') %} {% elseif state == 'active' %}
{{ "PLUGIN_ADMIN.ACTIVE_THEME"|tu }}
{% else %} {{ "PLUGIN_ADMIN.ACTIVATE"|tu }} {% endif %}
{% else %} {{ "PLUGIN_ADMIN.OFFLINE_WARNING"|tu }} {% endfor %}

{{ "PLUGIN_ADMIN.SWITCHING_TO"|tu }} {theme_name}

{{ "PLUGIN_ADMIN.SWITCHING_TO_DESCRIPTION"|tu }}

{{ "PLUGIN_ADMIN.SWITCHING_TO_CONFIRMATION"|tu }} {theme_name}?


{{ "PLUGIN_ADMIN.CONTINUE"|tu }}
{% include 'partials/modal-add-package.html.twig' with { type: 'theme' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'theme' } %}