{# steward/templates/settings/plugin_detail.html #} {% extends "base.html" %} {% block title %}{{ plugin.get('name', plugin._dir) }} Settings — Steward{% endblock %} {% block content %} {% set active_tab = "plugins" %} {% include "settings/_tabs.html" %}
← Plugins

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

v{{ plugin.get('version', '?') }} {% if fail_reason %} Error {% elif is_loaded %} Loaded {% elif plugin._enabled %} Enabled (restart required) {% else %} Disabled {% endif %}
{% if fail_reason %}
Failed to load — {{ fail_reason }}
{% endif %} {% if plugin.get('description') %}

{{ plugin.description }}

{% endif %}
{# ── Enable toggle ────────────────────────────────────────────────────────── #}
Enable/disable changes take effect after a restart.
{# ── Config fields ─────────────────────────────────────────────────────────── #} {% if plugin.get('config') %}
Configuration
{% for cfg_key, cfg_default in plugin.config.items() %} {% if cfg_default is iterable and cfg_default is not string and cfg_default is not mapping %}
📋 {{ cfg_key }} — list config, edit in plugin.yaml ({{ cfg_default | length }} item{{ 's' if cfg_default | length != 1 }}).
{% elif cfg_default is mapping %}
{{ 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 %}
{% endif %} {% endfor %}
{% endif %}
{% endblock %}