{% 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 %}
{% if current_dynmenu %}
    {% for menu in current_dynmenu.pills %} {% endfor %}
{% endif %}
{% if fully_authenticated_view %}
{% endif %}
{% endif %}
{% if request.args.get('refresh_player') %}
{{ l.slideshow_slide_refresh_player_success|replace('%time%', request.args.get('refresh_player')) }}
{% endif %} {% block page %}{% endblock %}
{{ HOOK(H_ROOT_JAVASCRIPT) }} {% block add_js %}{% endblock %}