]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/body.html.twig
Fix title
[airbundle] / Resources / views / body.html.twig
1 {% extends '@RapsysAir/base.html.twig' %}
2 {% block metas %}
3 <meta charset="UTF-8" />
4 {% endblock %}
5 {% block stylesheets %}
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 {% if description is defined and description %}
8 <meta name="description" content="{{ description }}" />
9 {% endif %}
10 {% if keywords is defined and keywords %}
11 <meta name="keywords" content="{{ keywords|join(', ') }}" />
12 {% endif %}
13 {% if site is defined and site %}
14 <link rel="shortcut icon" type="image/x-icon" href="{{ asset(site.ico) }}" />
15 <link rel="icon" type="image/svg+xml" href="{{ asset(site.svg) }}" />
16 {% for size, icon in site.png %}
17 {# Apple #}
18 {% if size in [120, 152, 167, 180] %}
19 {% if size == 180 %}
20 <link rel="apple-touch-icon" href="{{ asset(icon) }}" />
21 {% endif %}
22 <link rel="apple-touch-icon" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
23 {# Windows #}
24 {% elseif size in [70, 150, 310] %}
25 <meta name="msapplication-square{{ size }}x{{ size }}logo" content="{{ asset(icon) }}" />
26 {# Others #}
27 {% else %}
28 <link rel="icon" type="image/png" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
29 {% endif %}
30 {% endfor %}
31 {% endif %}
32 {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' #}
33 {% stopwatch 'stylesheet' %}
34 {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,screen}.css' %}
35 <link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
36 {% endstylesheet %}
37 {% endstopwatch %}
38 {% if canonical is defined and canonical %}
39 <link rel="canonical" href="{{ canonical }}" />
40 {% endif %}
41 {% if alternates is defined and alternates %}
42 {% for alternate in alternates %}
43 <link rel="alternate" href="{{ alternate.absolute }}" hreflang="{{ alternate.lang }}" />
44 {% endfor %}
45 {% endif %}
46 {% endblock %}
47 {% block javascripts %}
48 {% stopwatch 'javascript' %}
49 {#{% javascript '@RapsysAir/js/*.js' %}
50 <script type="text/javascript" src="{{ asset_url }}"></script>
51 {% endjavascript %}#}
52 {% endstopwatch %}
53 {% endblock %}
54 {% block title %}{{ title }}{% endblock %}
55 {% block body %}
56 {% block header %}
57 <header id="header">
58 {% if site is defined and site %}
59 {% block header_title %}<h1><a href="{{ site.url }}" title="{{ site.title }}"><img src="{{ asset(site.logo) }}" alt="{{ site.title }}" width="171" height="32" /></a></h1>{% endblock %}
60 {% endif %}
61 {% block header_nav %}
62 <nav>
63 <h2>{% trans %}Navigation{% endtrans %}</h2>
64 <ul>
65 <li><a href="{{ path('rapsys_air') }}">{% trans %}Home{% endtrans %}</a></li>
66 <li><a href="{{ path('rapsys_air_contact') }}">{% trans %}Contact{% endtrans %}</a></li>
67 <li><a href="{{ path('rapsys_air_frequently_asked_questions') }}">{% trans %}Frequently asked questions{% endtrans %}</a></li>
68 <li><a href="{{ path('rapsys_air_user') }}">{% trans %}Users{% endtrans %}</a></li>
69 <li><a href="{{ path('rapsys_air_organizer_regulation') }}">{% trans %}Organizer regulation{% endtrans %}</a></li>
70 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
71 <li><a href="{{ path('rapsys_user_logout') }}">{% trans %}Logout{% endtrans %}</a></li>
72 {% else %}
73 <li><a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a></li>
74 <li><a href="{{ path('rapsys_user_register') }}">{% trans %}Register{% endtrans %}</a></li>
75 {% endif %}
76 </ul>
77 </nav>
78 {% endblock %}
79 {#
80 {% block site_subtitle %}{% endblock %}
81 {% block site_tagline %}
82 {% if tags is defined and tags %}
83 <ul>
84 {% for id, tag in tags %}
85 <li><h2><a href="#{{id}}">{{tag}}</a></h2></li>
86 {% endfor %}
87 </ul>
88 {% endif %}
89 {% endblock %}
90 #}
91 </header>
92 {% endblock %}
93 {% block message %}
94 {# pass an array argument to get the messages of those types (['warning', 'error']) #}
95 {% for label, messages in app.flashes %}
96 {% if messages %}
97 <div class="message {{label}}">
98 <ul>
99 {% for message in messages %}
100 <li>{{ message }}</li>
101 {% endfor %}
102 </ul>
103 </div>
104 {% endif %}
105 {% endfor %}
106 {% endblock %}
107 {#
108 {% block sidebar %}<aside id="sidebar"></aside>{% endblock %}
109 #}
110 {% block content %}
111 <section id="content">
112 <h2><a href="{{ path('rapsys_air_homepage') }}">{{ section }}</a></h2>
113 <p>{% trans %}Outdoor space reservation system{% endtrans %}</p>
114 </section>
115 {% endblock %}
116 {% block footer %}
117 <footer id="footer">
118 {% if copy is defined and copy %}
119 <a href="{{ copy.link }}" title="{{ copy.title }}" rel="author">{{ copy.by }}</a>
120 <details><summary>{{ copy.long }}</summary><span>{{ copy.short }}</span></details>
121 {% endif %}
122 <a href="{{ path('rapsys_air_terms_of_service') }}">{% trans %}Terms of service{% endtrans %}</a>
123 {% if alternates is defined and alternates %}
124 {% if alternates|length > 1 %}
125 <ul>
126 {% for alternate in alternates %}
127 <li><a href="{{ alternate.relative }}" hreflang="{{ alternate.lang }}" title="{{ alternate.title }}">{{ alternate.translated }}</a></li>
128 {% endfor %}
129 </ul>
130 {% else %}
131 {% set alternate = alternates|first %}
132 <a href="{{ alternate.relative }}" hreflang="{{ alternate.lang }}" title="{{ alternate.title }}">{{ alternate.translated }}</a>
133 {% endif %}
134 {% else %}
135 <span>&nbsp;</span>
136 {% endif %}
137 </footer>
138 {% endblock %}
139 {% endblock %}