]> git.agnieray.net Git - galette.git/blob - galette/templates/default/page.html.twig
Handle RTL
[galette.git] / galette / templates / default / page.html.twig
1 <!DOCTYPE html>
2
3 <html lang="{{ galette_lang }}"{% if i18n.isRtl() %} dir="rtl"{% endif %}>
4 <head>
5 {% include 'elements/header.html.twig' with {
6 galette_lang: galette_lang
7 } %}
8 </head>
9 <body id="galette_body" class="pushable dimmable{% if login.isLogged() %} loggedin{% endif %} nojs">
10 {% include 'elements/navigation/navigation_sidebar.html.twig' %}
11 {% include 'elements/navigation/navigation_topbar.html.twig' %}
12 <div class="pusher">
13 <div id="main" class="{% if not login.isLogged() %}container{% else %} full height{% if i18n.isRtl() %} rtl{% endif %}{% endif %}">
14 {% if login.isLogged() %}
15 {% include 'elements/navigation/navigation_aside.html.twig' %}
16 {% endif %}
17 <section class="content{% if contentcls is defined %} {{ contentcls }}{% endif %}">
18 {% if not login.isLogged() %}
19 <div class="ui basic center aligned fitted segment">
20 <img src="{{ url_for("logo") }}" width="{{ logo.getOptimalWidth() }}" height="{{ logo.getOptimalHeight() }}" alt="{{ preferences.pref_nom }}" class="icon"/>
21 <div class="ui large header">
22 {{ preferences.pref_nom }}
23 <div class="sub header">{% if preferences.pref_slogan %}{{ preferences.pref_slogan }}{% endif %}</div>
24 </div>
25 </div>
26 <h1 class="ui block center aligned header" style="position: relative">
27 {% else %}
28 <div class="ui horizontal basic segments header">
29 <div class="ui left aligned segment">
30 </div>
31 <div class="ui center aligned segment">
32 <h1>
33 {% endif %}
34 {% block page_title %}{{ page_title }}{% endblock %}
35 </h1>
36 {% if login.isLogged() %}
37 </div>
38 <div class="ui right aligned segment">
39 <div class="ui compact tiny menu">
40 {% if cur_route != 'mailing' and existing_mailing == true %}
41 <a
42 id="recup_mailing"
43 href="{{ url_for("mailing") }}"
44 class="ui blue tooltip item"
45 title="{{ _T("A mailing exists in the current session. Click here if you want to resume or cancel it.") }}"
46 data-position="bottom right"
47 >
48 <i class="paper plane outline blue icon"></i>
49 <span class="displaynone">{{ _T("Existing mailing") }}</span>
50 </a>
51 {% endif %}
52 {% include "elements/language.html.twig" with {
53 ui: "dropdown"
54 } %}
55 </div>
56 </div>
57 </div>
58 {% endif %}
59 <div class="main-content">
60 {% include "elements/messages_inline.html.twig" %}
61 {% block content %}{{ _T('Page content') }}{% endblock %}
62 </div>
63 {% include "elements/footer.html.twig" %}
64 </section>
65 </div>
66 </div>
67 <a href="#" id="back2top" class="ui basic icon button">
68 <i class="arrow up icon"></i>
69 {{ _T("Back to top") }}
70 </a>
71 {% include "elements/scripts.html.twig" %}
72 {% block javascripts %}{% endblock %}
73 </body>
74 </html>