{% 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 %}