{% set gpm = admin.gpm() %} {% set installed = gpm.isPluginInstalled(admin.route) %}
{% if installed and gpm.isPluginUpdatable(admin.route) %} {% set remote = gpm.getRepositoryPlugin(admin.route) %}

v{{ remote.available }} {{ "PLUGIN_ADMIN.OF_THIS_PLUGIN_IS_NOW_AVAILABLE"|tu }}!

{% endif %}

{{ plugin.name|e }} {% if admin.isTeamGrav(plugin) %} {% endif %} {% if plugin.symlink %} {% endif %} {{ plugin.version ? 'v' ~ plugin.version|e }}

{% 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 } %}
{{ "PLUGIN_ADMIN.REMOVE_PLUGIN"|tu }}
{% else %}
{{ "PLUGIN_ADMIN.INSTALL_PLUGIN"|tu }}
{% endif %}