2019-02-23 16:49:38 +01:00
|
|
|
<!DOCTYPE html>
|
2019-03-20 23:24:20 +01:00
|
|
|
<html lang="{{ app.request.locale }}">
|
2019-02-24 18:05:06 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2019-03-20 22:33:51 +01:00
|
|
|
|
2020-03-30 17:17:08 +02:00
|
|
|
<link rel="manifest" href="{{ asset('manifest.json') }}">
|
2019-11-30 16:05:36 +01:00
|
|
|
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="application-name" content="Part-DB">
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Part-DB">
|
2022-07-18 00:11:12 +02:00
|
|
|
<meta name="msapplication-config" content="{{ asset('icon/browserconfig.xml') }}">
|
2019-11-30 16:05:36 +01:00
|
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
<meta name="msapplication-navbutton-color" content="#ffffff">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
|
|
<meta name="msapplication-starturl" content="/en/">
|
|
|
|
|
2024-02-08 22:05:57 +01:00
|
|
|
{# Turbo control headers #}
|
2022-08-03 21:43:58 +02:00
|
|
|
<meta name="turbo-cache-control" content="no-cache">
|
2024-02-08 22:05:57 +01:00
|
|
|
<meta name="turbo-refresh-method" content="morph">
|
|
|
|
<meta name="turbo-refresh-scroll" content="preserve">
|
2019-11-30 16:05:36 +01:00
|
|
|
|
2023-02-05 00:18:07 +01:00
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
|
2022-07-18 00:11:12 +02:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('icon/apple-touch-icon.png') }}">
|
|
|
|
<link rel="icon" type="image/png" href="{{ asset('icon/favicon-32x32.png') }}" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="{{ asset('icon/favicon-16x16.png') }}" sizes="16x16">
|
|
|
|
<link rel="mask-icon" href="{{ asset('icon/safari-pinned-tab.svg') }}" color="#5bbad5">
|
2019-11-30 16:05:36 +01:00
|
|
|
|
2024-02-03 00:50:38 +01:00
|
|
|
{# The content block is already escaped. so we must not escape it again. #}
|
|
|
|
<title>{% apply trim|raw %}{% block title %}{{ partdb_title }}{% endblock %}{% endapply %}</title>
|
|
|
|
{% set current_page_title = block("title")|raw %}
|
2019-02-24 18:05:06 +01:00
|
|
|
{% block stylesheets %}
|
2019-10-13 17:48:18 +02:00
|
|
|
{# Include the main bootstrap theme based on user/global setting #}
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-26 22:27:04 +02:00
|
|
|
{% if not app.user.theme is defined %}
|
2019-10-13 17:48:18 +02:00
|
|
|
{% set theme = global_theme %}
|
|
|
|
{% else %}
|
|
|
|
{% set theme = app.user.theme %}
|
|
|
|
{% endif %}
|
|
|
|
|
2019-11-30 16:46:03 +01:00
|
|
|
|
|
|
|
|
2023-02-01 23:15:02 +01:00
|
|
|
{% if theme and theme in available_themes and encore_entry_exists('theme_' ~ theme) %}
|
2023-02-01 22:58:39 +01:00
|
|
|
{{ encore_entry_link_tags('theme_' ~ theme) }}
|
2019-10-13 17:48:18 +02:00
|
|
|
{% else %}
|
2023-02-01 22:58:39 +01:00
|
|
|
{{ encore_entry_link_tags('theme_bootstrap') }}
|
2019-10-13 17:48:18 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2020-01-07 19:35:53 +01:00
|
|
|
{{ encore_entry_link_tags('app') }}
|
2019-02-24 18:05:06 +01:00
|
|
|
{% endblock %}
|
2022-03-04 20:59:08 +01:00
|
|
|
|
|
|
|
{% block javascripts %}
|
|
|
|
{{ encore_entry_script_tags('app') }}
|
2022-10-03 23:09:50 +02:00
|
|
|
{{ encore_entry_script_tags('webauthn_tfa') }}
|
2022-07-26 01:43:30 +02:00
|
|
|
|
|
|
|
{# load translation files for ckeditor #}
|
|
|
|
{% set two_chars_locale = app.request.locale|default("en")|slice(0,2) %}
|
|
|
|
{% if two_chars_locale != "en" %}
|
|
|
|
<script src="{{ asset("build/ckeditor_translations/" ~ two_chars_locale ~ ".js") }}"></script>
|
|
|
|
{% endif %}
|
2022-03-04 20:59:08 +01:00
|
|
|
{% endblock %}
|
2019-02-24 18:05:06 +01:00
|
|
|
</head>
|
2022-08-04 21:00:42 +02:00
|
|
|
<body data-base-url="{{ path('homepage', {'_locale': app.request.locale}) }}" data-locale="{{ app.request.locale|default("en")|slice(0,2) }}">
|
2019-02-24 18:05:06 +01:00
|
|
|
{% block body %}
|
2019-02-24 18:32:03 +01:00
|
|
|
<header>
|
2022-10-09 19:47:03 +02:00
|
|
|
<turbo-frame id="navbar-frame" target="content" data-turbo-action="advance">
|
2022-03-05 23:09:55 +01:00
|
|
|
{% include "_navbar.html.twig" %}
|
|
|
|
</turbo-frame>
|
2019-02-24 18:32:03 +01:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
2022-07-24 14:20:20 +02:00
|
|
|
{% include "_toast_container.html.twig" %}
|
|
|
|
|
2022-08-03 23:46:44 +02:00
|
|
|
<div class="collapse d-md-block" id="sidebar-container">
|
|
|
|
<nav class="fixed-sidebar col-md-3 col-lg-2 bg-body" id="fixed-sidebar">
|
2022-07-31 21:29:00 +02:00
|
|
|
<turbo-frame id="sidebar" target="content" data-turbo-action="advance" data-turbo-permanent>
|
2022-03-05 23:09:55 +01:00
|
|
|
{% include "_sidebar.html.twig" %}
|
|
|
|
</turbo-frame>
|
2019-02-26 14:02:05 +01:00
|
|
|
<noscript><b>{% trans %}vendor.base.javascript_hint{% endtrans %}</b></noscript>
|
2019-02-24 18:32:03 +01:00
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
2022-07-24 18:08:21 +02:00
|
|
|
<div class="col-md-9 col-lg-10 offset-md-3 offset-lg-2 ps-0" id="main">
|
|
|
|
<div class="container-fluid me-0 pe-0" id="content-container">
|
2022-03-05 23:09:55 +01:00
|
|
|
<turbo-frame id="content" data-turbo-action="advance">
|
2019-02-24 18:32:03 +01:00
|
|
|
{# Here will be the real content be injected#}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-07-24 15:19:05 +02:00
|
|
|
{% include "_turbo_control.html.twig" %}
|
2022-07-24 14:41:28 +02:00
|
|
|
|
|
|
|
</turbo-frame>
|
2020-06-07 17:16:11 +02:00
|
|
|
{% block scripts %}
|
|
|
|
|
|
|
|
{% endblock %}
|
2019-02-24 18:32:03 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
2019-03-24 19:55:39 +01:00
|
|
|
|
2019-03-26 16:40:05 +01:00
|
|
|
{# Back to top buton #}
|
|
|
|
|
|
|
|
<!-- Back to top button -->
|
2022-07-30 00:47:51 +02:00
|
|
|
<button id="back-to-top" class="btn btn-primary back-to-top" role="button" title="{% trans %}back_to_top{% endtrans %}"
|
|
|
|
{{ stimulus_controller('common/back_to_top') }} {{ stimulus_action('common/back_to_top', 'backToTop') }}>
|
2019-03-26 16:40:05 +01:00
|
|
|
<i class="fas fa-angle-up fa-fw"></i>
|
2022-07-30 00:47:51 +02:00
|
|
|
</button>
|
2019-03-24 19:55:39 +01:00
|
|
|
|
2022-07-31 22:07:27 +02:00
|
|
|
{# Must be outside of the sidebar or it will be hidden too #}
|
2023-01-10 00:10:59 +01:00
|
|
|
<button class="btn btn-outline-dark btn-sm p-0 d-md-block d-none" type="button" id="sidebar-toggle-button" title="{% trans %}sidebar.big.toggle{% endtrans %}"
|
2022-07-31 22:07:27 +02:00
|
|
|
{{ stimulus_controller('common/hide_sidebar') }} {{ stimulus_action('common/hide_sidebar', 'toggleSidebar') }}>
|
|
|
|
<i class="fas fa-angle-left"></i>
|
|
|
|
</button>
|
|
|
|
|
2019-02-24 18:05:06 +01:00
|
|
|
{% endblock %}
|
2022-03-04 20:59:08 +01:00
|
|
|
|
2019-02-24 18:05:06 +01:00
|
|
|
</body>
|
2019-02-23 16:49:38 +01:00
|
|
|
</html>
|