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

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

{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
{% if (installed) %} {% set data = admin.data('plugins/' ~ admin.route) %} {% if data.get('enabled') %} {% include 'partials/blueprints.html.twig' with { data: data, blueprints: data.blueprints } %} {% else %}
{% endif %} {% 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"|t }}
{% 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"|t }} {% 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} %}