Part-DB.Part-DB-server/templates/base.html.twig

116 lines
4.4 KiB
Twig
Raw Normal View History

2019-02-23 16:49:38 +01:00
<!DOCTYPE html>
2019-03-20 23:24:20 +01:00
<html lang="{{ app.request.locale }}">
<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">
<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/">
<link rel="shortcut icon" type="image/x-icon" href="{{ asset('icon/favicon.ico') }}">
<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
2019-03-20 22:33:51 +01:00
<title>{% apply trim %}{% block title %}{{ partdb_title}}{% endblock %}{% endapply %}</title>
{% block stylesheets %}
{# Include the main bootstrap theme based on user/global setting #}
{% if not app.user.theme is defined %}
{% set theme = global_theme %}
{% else %}
{% set theme = app.user.theme %}
{% endif %}
{% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') %}
<link rel="stylesheet" href="{{ preload(asset('build/themes/' ~ theme ~ '.css'), {as: 'style'}) }}">
{% else %}
<link rel="stylesheet" href="{{ preload(asset('build/themes/bootstrap.css'), {as: 'style'}) }}">
{% endif %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
2022-03-04 20:59:08 +01:00
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{{ encore_entry_script_tags('ru2ftwofactor') }}
{% endblock %}
</head>
<body data-base-url="{{ url('homepage', {'_locale': app.request.locale}) }}">
{% block body %}
<header>
2022-03-05 23:09:55 +01:00
<turbo-frame id="navbar-frame" target="content" data-turbo-action="advance">
{% include "_navbar.html.twig" %}
</turbo-frame>
{% include "_flash.html.twig" %}
</header>
<main>
<div class="container-fluid">
<div class="row">
<div class="collapse d-md-block bg-light" id="sidebar-container">
<nav class="fixed-sidebar col-md-3 col-lg-2 " id="fixed-sidebar">
2022-03-05 23:09:55 +01:00
<turbo-frame id="sidebar" target="content" data-turbo-action="advance">
{% include "_sidebar.html.twig" %}
</turbo-frame>
<noscript><b>{% trans %}vendor.base.javascript_hint{% endtrans %}</b></noscript>
</nav>
</div>
<div class="col-md-9 col-lg-10 offset-md-3 offset-lg-2 pl-0" id="main">
<button class="btn btn-outline-dark btn-sm p-0" type="button" id="sidebar-toggle-button" title="{% trans %}sidebar.big.toggle{% endtrans %}">
<i class="fas fa-angle-left"></i>
</button>
<div class="container-fluid mr-0 pr-0" id="content-container">
2022-03-05 23:09:55 +01:00
<turbo-frame id="content" data-turbo-action="advance">
{# Here will be the real content be injected#}
{% block content %}
{% endblock %}
</turbo-frame>
{% block scripts %}
{% endblock %}
</div>
</div>
</div>
</div>
</main>
2019-03-26 16:40:05 +01:00
{# Back to top buton #}
<!-- Back to top button -->
<a id="back-to-top" href="#" class="btn btn-primary back-to-top" data-no-ajax role="button"
title="{% trans %}back_to_top{% endtrans %}" data-toggle="tooltip" data-placement="left">
<i class="fas fa-angle-up fa-fw"></i>
</a>
{% endblock %}
2022-03-04 20:59:08 +01:00
</body>
2019-02-23 16:49:38 +01:00
</html>