{% set gpm = admin.gpm() %} {% set installed = gpm.isPluginInstalled(admin.route) %} {% set isTestingRelease = gpm.isTestingRelease(plugin.slug) %} {% set gumroad_loaded = false %}

{{ plugin.name|e }} {% if admin.isTeamGrav(plugin) %} {% endif %} {% if admin.isPremiumProduct(plugin) %} {{ "PLUGIN_ADMIN.PREMIUM_PRODUCT"|tu }} {% endif %} {% if plugin.symlink %} {% endif %} {{ plugin.version ? 'v' ~ plugin.version|e }} {% if isTestingRelease %}test release{% endif %}

{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
{% if (installed) %} {% set data = admin.data('plugins/' ~ admin.route) %} {% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %} {% if (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.login.fields.enabled.type != 'hidden') %}
{% if not plugin.symlink %} {% endif %} {{ "PLUGIN_ADMIN.REMOVE_PLUGIN"|tu }}
{% endif %} {% else %}
{% 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_PLUGIN"|tu }} {% endif %}
{% endif %} {% include 'partials/modal-changes-detected.html.twig' %} {% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-remove-package.html.twig' with { type: 'plugin', package: plugin } %} {% include 'partials/modal-reinstall-package.html.twig' with { type: 'plugin', package: plugin } %} {% include 'partials/modal-changelog.html.twig' with { package: plugin} %}