{# steward/templates/settings/plugin_detail.html #} {% extends "base.html" %} {% from "_macros.html" import crumbs %} {% block title %}{{ plugin.get('name', plugin._dir) }} Settings — Steward{% endblock %} {% from "settings/_tabs.html" import settings_tabs %} {% block section_tabs %}{{ settings_tabs("plugins") }}{% endblock %} {% block breadcrumb %}{{ crumbs([("Settings", "/settings/"), ("Plugins", "/settings/plugins/"), (plugin.get('name', plugin._dir), "")]) }}{% endblock %} {% block content %}

{{ plugin.get('name', plugin._dir) }}

v{{ plugin.get('version', '?') }} {% if fail_reason %} Error {% elif is_loaded %} Loaded {% elif plugin._enabled %} Enabled, not loaded {% else %} Disabled {% endif %}
{% if fail_reason %}
✕ Failed to load — {{ fail_reason }}
{% endif %} {% if plugin._enabled and not is_loaded and not plugin._always_on %}
It's enabled but not running{% if fail_reason %}: it couldn't be started while Steward runs{% endif %}. A restart loads it.
{{ csrf_field() }}
{% endif %} {% if plugin.get('description') %}

{{ plugin.description }}

{% endif %}
{{ csrf_field() }} {# ── Enable toggle; a built-in plugin has none (always on) ─────────────────── #} {% if plugin._always_on %}
Built in: always on
Steward relies on this one (hosts, maintenance, drive and update alerts, Docker collection), so it can't be turned off. Its settings below still apply.
{% else %}
Enabling loads the plugin straight away. Disabling takes effect after a restart.
{% endif %} {# ── Config fields ─────────────────────────────────────────────────────────── #} {% if plugin.get('config') %}
Configuration
{% for cfg_key, cfg_default in plugin.config.items() %} {% if cfg_default is mapping %}
{{ field_label(cfg_key) }}
{% set sub_cfg = plugin._config.get(cfg_key, cfg_default) if plugin._config.get(cfg_key, cfg_default) is mapping else cfg_default %}
{% for sub_key, sub_default in cfg_default.items() %} {% if sub_default is sameas false or sub_default is sameas true %}
{% else %}
{% endif %} {% endfor %}
{% elif cfg_default is sameas false or cfg_default is sameas true %}
{% else %}
{% set secret = is_plugin_secret(cfg_key) %}
{% endif %} {% endfor %}
{% endif %}
{% endblock %}