{# The /settings tab row, shared by /settings and the pages that look like one of its tabs (the AI pages). On /settings itself (active=None) the tabs are in-page #anchors that tabs.js switches. Anywhere else they link back to /settings#, which tabs.js opens on arrival, and `active` marks the current page's tab server-side. "AI / LLM / MCP" and "Backups" are always links to their own pages. Import `with context`, it needs llm_features_disabled from the context processor: {% from 'settings-tabs.html' import settings_tabs with context %} {{ settings_tabs(active='ai', plugin_tabs=plugin_tabs) }} #} {% macro settings_tabs(active=None, plugin_tabs=None) %} {%- set base = '' if active is none else url_for('settings.settings_page') -%}
{% endmacro %}