{% 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"|tu : "PLUGIN_ADMIN.INSTALLED_PLUGINS"|tu }}

{% for slug, plugin in admin.plugins(not installing).toArray|ksort %} {% set data = admin.data('plugins/' ~ slug) %} {% set isTestingRelease = admin.gpm.isTestingRelease(slug) %} {% set releaseDate = plugin.date ?: admin.gpm.findPackage(slug, true).date %} {% else %} {% endfor %}
{{ plugin.name }} {% if admin.isTeamGrav(plugin) %} {% endif %} {% if admin.isPremiumProduct(plugin) %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ "PLUGIN_ADMIN.PREMIUM_PRODUCT"|tu }} {% 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.login.fields.enabled.type != 'hidden')) %} {% elseif (installing) %} {% if (plugin.premium and not admin.license(plugin.slug)) %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ "Buy Now"|tu }} {% else %} {{ "PLUGIN_ADMIN.INSTALL"|tu }} {% endif %} {% endif %}
{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
{{ "PLUGIN_ADMIN.OFFLINE_WARNING"|tu }}
{% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %}