{% if ui_from_profiles %} {% extends "layouts/" + render_mode + "-tall.html" %} {% else %} {% extends "logs/layout.html" %} {% endif %} {% block title %}{{_("Plugins")}}{% endblock %} {% block content %}

{{_("Plugins")}}

{% if ui_saved %}

{{_("Your settings have been saved.")}}

{% endif %}
{%- set plugins = mailpile("plugins").result %} {%- for pname in plugins|sort %} {%- set plugin = plugins[pname] %} {%- if (plugin.manifest and plugin.manifest.display and (plugin.manifest.public or is_dev_version())) %}
{%- set ui = plugin.manifest.user_interface %} {%- set icon = ( (ui and ui.settings and ui.settings[0].icon) or (ui and ui.activities and ui.activities[0].icon) or (ui and ui.selection_actions and ui.selection_actions[0].icon) or (ui and ui.display_refiners and ui.display_refiners[0].icon) or 'code') %} {%- set icon = 'code' if '/' in icon else icon %}

{{ plugin.manifest.name or pname }}

{% if plugin.loaded %}

{{_("This plugin is currently enabled!")}}

{% else %}

{{_("This plugin is disabled.")}}

{% endif %}

{{_("Author")}}: {{ plugin.manifest.author }}

{% if not plugin.manifest.public %}

{{_("Be careful!")}} {{_("This plugin is meant for developers and may be incomplete or dangerous.")}}

{% endif %}

{{ _(plugin.manifest.description) }}

{%- if plugin.loaded %} {%- if pname not in config.sys.plugins %} {{_("Plugin will be disabled on restart.")}}   {%- else %} {%- if plugin.manifest.user_interface and plugin.manifest.user_interface.settings %} {%- set elem = plugin.manifest.user_interface.settings[0] %} {%- endif %} {%- endif %} {%- else %} {%- endif %}


{% endif %}{%- endfor %}
{% endblock %}