BunkerWeb logo
{% with menu_items = { "home": {"url": url_for('home'), "icon": "bx-home-smile"}, "instances": {"url": url_for('instances'), "icon": "bx-server"}, "global-settings": {"url": url_for('global_settings'), "icon": "bx-cog"}, "services": {"url": url_for('services'), "icon": "bx-cube"}, "configs": {"url": url_for('configs'), "icon": "bx-file-blank"}, "templates": {"url": url_for('templates.templates_page'), "icon": "bx-layout"}, "plugins": {"url": url_for('plugins'), "icon": "bx-extension"}, "cache": {"url": url_for('cache'), "icon": "bx-data"}, "reports": {"url": url_for("reports"), "icon": "bxs-flag-checkered"}, "bans": {"url": url_for('bans'), "icon": "bx-block"}, "jobs": {"url": url_for('jobs'), "icon": "bx-task"}, "logs": {"url": url_for('logs'), "icon": "bx-notepad"}, } %}
  • {% include "language-selector.html" %}
  • {% for endpoint, item in menu_items.items() %}
  • {{ endpoint | replace('-', ' ') |title }}
    {% if item.get('sub') %}
      {% for sub in item['sub'][:item.get('max', 5)] %}
    • {{ sub }}
    • {% endfor %} {% if item['sub']|length > item.get('max', 5) %}
    • More...
    • {% endif %}
    {% endif %}
  • {% endfor %}
  • Pro plugin
    Pro
  • Support
  • {% set menu_plugin_types = { "core": { "icon": "" }, "external": { "icon": "" }, "ui": { "icon": "" } } %} {% set extra_plugin_lookup = {} %} {% for _pid, _pdata in plugins.items() %} {% set _ = extra_plugin_lookup.update({_pid: _pdata}) %} {% set _ = extra_plugin_lookup.update({_pid | lower: _pdata}) %} {% set _ = extra_plugin_lookup.update({_pid | replace('-', '_') | lower: _pdata}) %} {% set _ = extra_plugin_lookup.update({_pid | replace('_', '-') | lower: _pdata}) %} {% if _pdata.get('name') %} {% set _ = extra_plugin_lookup.update({_pdata['name'] | replace(' ', '_') | lower: _pdata}) %} {% set _ = extra_plugin_lookup.update({_pdata['name'] | replace(' ', '-') | lower: _pdata}) %} {% endif %} {% endfor %} {% if extra_pages %}
  • Extra Pages
  • {% for page in extra_pages %} {% set extra_plugin_data = extra_plugin_lookup.get(page) or extra_plugin_lookup.get(page | lower) or extra_plugin_lookup.get(page | replace('-', '_') | lower) or extra_plugin_lookup.get(page | replace('_', '-') | lower) %}
  • {% if extra_plugin_data %} {{ menu_plugin_types.get(extra_plugin_data["type"], {}).get('icon', 'Pro plugin') |safe }}
    {{ extra_plugin_data['name'] }}
    {% else %}
    {{ page | replace('-', ' ') | replace('_', ' ') |title }}
    {% endif %}
  • {% endfor %}
    {% endif %}
  • Plugins Pages
  • {% for plugin, plugin_data in plugins.items() %} {% with not_pro_pro_plugin = not is_pro_version and plugin_data['type'] == "pro" %} {% if (not_pro_pro_plugin or plugin_data['page']) and url_for(plugin) == "#" %}
  • {{ menu_plugin_types.get(plugin_data["type"], {}).get('icon', 'Pro plugin') |safe }}
    {{ plugin_data['name'] }}
  • {% endif %} {% endwith %} {% endfor %}
  • Misc
  • About
{% endwith %}