{% set gumroad_loaded = false %}
{% if installing %} {% include 'partials/release-toggle.html.twig' %} {% endif %} {% include 'partials/list-sort.html.twig' with { list_view: 'plugins' } %}

{{ installing ? "PLUGIN_ADMIN.AVAILABLE_PLUGINS"|t : "PLUGIN_ADMIN.INSTALLED_PLUGINS"|t }}

{% for slug, plugin in admin.plugins(not installing).toArray|ksort %} {% set data = admin.data('plugins/' ~ slug) %} {% set isTestingRelease = admin.gpm.isTestingRelease(slug) %} {% set isPremium = admin.isPremiumProduct(plugin) %} {% set releaseDate = plugin.date ?: admin.gpm.findPackage(slug, true).date %} {% else %} {% endfor %}
{{ plugin.name }} {% if admin.isTeamGrav(plugin) %} {% endif %} {% if isPremium %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ "PLUGIN_ADMIN.PREMIUM_PRODUCT"|t }} {% endif %} {% if plugin.symlink %} {% endif %} v{{ plugin.version }} {% if isTestingRelease %}test release{% endif %} {% if (not installing and (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.options.fields.enabled.type != 'hidden')) %} {% elseif (installing) %} {% if (plugin.premium and not admin.license(plugin.slug)) %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ plugin.premium.button|default('Purchase') }} {% else %} {{ "PLUGIN_ADMIN.INSTALL"|t }} {% endif %} {% endif %}
{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
{{ "PLUGIN_ADMIN.OFFLINE_WARNING"|t }}
{% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-changelog.html.twig' with { package: plugin} %}