{# Turbo control headers #} {# The content block is already escaped. so we must not escape it again. #} {% apply trim|raw %}{% block title %}{{ partdb_title }}{% endblock %}{% endapply %} {% set current_page_title = block("title")|raw %} {% block stylesheets %} {# Include the main bootstrap theme based on user/global setting #} {% if not app.user.theme is defined or app.user.theme is null %} {% set theme = global_theme %} {% else %} {% set theme = app.user.theme %} {% endif %} {% if theme and theme in available_themes and encore_entry_exists('theme_' ~ theme) %} {{ encore_entry_link_tags('theme_' ~ theme) }} {% else %} {{ encore_entry_link_tags('theme_bootstrap') }} {% endif %} {{ encore_entry_link_tags('app') }} {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('app') }} {{ encore_entry_script_tags('webauthn_tfa') }} {# load translation files for ckeditor #} {% set two_chars_locale = app.request.locale|default("en")|slice(0,2) %} {% if two_chars_locale != "en" %} {% endif %} {% endblock %} {% block body %}
{% include "_navbar.html.twig" %}
{% include "_toast_container.html.twig" %}
{# Here will be the real content be injected#} {% block content %} {% endblock %} {% include "_turbo_control.html.twig" %} {% block scripts %} {% endblock %}
{# Back to top buton #} {# Must be outside of the sidebar or it will be hidden too #} {% endblock %}