{% block add_css %}{% endblock %} {{ HOOK(H_ROOT_CSS) }}
{% set authenticated_view = not AUTH_ENABLED or (current_user and current_user.is_authenticated) %} {% set fully_authenticated_view = authenticated_view and current_user.is_authenticated %} {% set dynmenu = { "slideshow": { "name": l.dynmenu_content, "icon": "fa-image", "position": 0, "main_pill_route": last_pillmenu_slideshow, "pills": [ {"name": l.dynmenu_content_library, "route": "slideshow_content_list", "icon": "fa-image"}, {"name": l.dynmenu_content_playlists, "route": "playlist", "route_alt": "playlist_list", "icon": "fa-play"}, ] }, "configuration": { "name": l.dynmenu_configuration, "icon": "fa-cog", "position": 3, "main_pill_route": last_pillmenu_configuration, "pills": [ {"name": l.settings_page_title, "route": "settings_variable_list", "icon": "fa-cogs"}, {"name": l.settings_plugin_page_title, "route": "settings_variable_plugin_list", "icon": "fa-puzzle-piece"}, {"name": l.sysinfo_page_title, "route": "sysinfo_attribute_list", "icon": "fa-list-check"}, {"name": l.logs_page_title, "route": "logs", "icon": "fa-file-lines"}, ] } } %} {% if FLEET_PLAYER_ENABLED %} {% set dynmenu = merge_dicts(dynmenu, { "fleet": { "name": l.dynmenu_fleet, "icon": "fa-tv", "position": 1, "main_pill_route": last_pillmenu_fleet, "pills": [ {"name": l.fleet_node_player_page_title, "route": "fleet_node_player_list", "icon": "fa-tv"}, {"name": l.fleet_node_player_group_page_title, "route": "fleet_node_player_group", "route_alt": "fleet_node_player_group_list", "icon": "fa-layer-group"}, ] } }) %} {% endif %} {% if AUTH_ENABLED %} {% set dynmenu = merge_dicts(dynmenu, { "security": { "name": l.dynmenu_security, "icon": "fa-key", "position": 2, "main_pill_route": last_pillmenu_security, "pills": [ {"name": l.auth_page_title, "route": "auth_user_list", "icon": "fa-user"}, ] } }) %} {% endif %} {% set dynmenu = dictsort(dynmenu) %} {% set route_to_category = {} %} {% for category, details in dynmenu.items() %} {% for pill in details.pills %} {% set route_to_category = route_to_category.update({pill.route: category}) or route_to_category %} {% set route_to_category = route_to_category.update({pill.route_alt: category}) or route_to_category %} {% endfor %} {% endfor %} {% set active_route = active_pill_route if active_pill_route else request.url_rule.endpoint %} {% set current_dynmenu = dynmenu[route_to_category[active_route]] %} {% block header %}

Obscreen

{% block footer %} {% endblock %}
{% endblock %}
{% set show_context_bar = current_dynmenu or fully_authenticated_view %} {% if authenticated_view %}
{% block pill_menu %} {% if current_dynmenu %} {% with pills=current_dynmenu.pills %} {% include 'core/pill-menu.jinja.html' %} {% endwith %} {% endif %} {% endblock %}
{% if fully_authenticated_view and AUTH_ENABLED %}
{% endif %}
{% endif %}
{% block top_page %}{% endblock %} {% block toolbar_page %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% set alert_class = '' %} {% set alert_icon = '' %} {% if category == 'success' %} {% set alert_class = 'success' %} {% set alert_icon = 'fa-check' %} {% elif category == 'success:refresh' %} {% set alert_class = 'success' %} {% set alert_icon = 'fa-refresh' %} {% elif category == 'error' %} {% set alert_class = 'danger' %} {% set alert_icon = 'fa-warning' %} {% elif category == 'warning' %} {% set alert_class = 'yellow' %} {% set alert_icon = 'fa-warning' %} {% endif %} {% if alert_class %}
{{ message }}
{% endif %} {% endfor %} {% endif %} {% endwith %} {% endblock %} {% block main_page %}{% endblock %}
{{ HOOK(H_ROOT_JAVASCRIPT) }} {% block add_js %}{% endblock %}