{% set theme = theme or "light" %} {% set pro_diamond_url = url_for('static', filename='img/diamond.svg') %} {% set avatar_url = url_for('static', filename='img/avatar_profil_BW.png' if theme == 'light' else 'img/avatar_profil_BW-white.png') %} {% set plugin_types = { "core": { "icon": "", "title-class": " border-dark" }, "external": { "icon": "", "title-class": " border-secondary", "text-class": " text-secondary fw-bold" }, "ui": { "icon": "", "title-class": " border-secondary", "text-class": " text-secondary" }, "pro": { "title-class": " border-primary", "text-class": " text-primary fw-bold shine" } } %} {% set page_title_fallback = (current_endpoint or "") | replace('-', ' ') | replace('_', ' ') | title %} {% if page_title_fallback %}{{ page_title_fallback }} - {% endif %} BunkerWeb UI {% block head %}{% endblock %} {# External styles from DATA['EXTRA_STYLES'] and plugin styles hooks #} {% for extra_style in extra_styles %} {% if extra_style is string %} {% elif extra_style is mapping %} {% endif %} {% endfor %} {% if not starting %}{% endif %} {% if not starting and current_endpoint != "loading" %} {% include "flash.html" %} {% endif %} {% block page %}{% endblock %} {% block scripts %}{% endblock %} {# External scripts from DATA['EXTRA_SCRIPTS'] and plugin scripts hooks #} {% for extra_script in extra_scripts %} {% if extra_script is mapping %} {% set _src = extra_script.get('src') %} {% set _type = extra_script.get('type') %} {% if _src %} {% endif %} {% else %} {% endif %} {% endfor %} {# Inline custom JS from plugin scripts hooks: 'custom_js' can be string or list #} {% if custom_js is string %} {% elif custom_js is sequence %} {% for js_chunk in custom_js %} {% if js_chunk %}{% endif %} {% endfor %} {% endif %}