]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/body.html.twig
Improve method documentation
[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 <link rel="shortcut icon" type="image/x-icon" href="{{ asset(site_ico) }}" />
8 <link ref="icon" type="image/svg+xml" href="{{ asset(site_svg) }}" />
9 {% for size, icon in site_png %}
10 {# Apple #}
11 {% if size in [152, 167, 180] %}
12 {% if size == 180 %}
13 <link rel="apple-touch-icon" href="{{ asset(icon) }}" />
14 {% endif %}
15 <link rel="apple-touch-icon" sizes="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
16 {# Windows #}
17 {% elseif size in [70, 150, 310] %}
18 <meta name="msapplication-square{{ size }}x{{ size }}logo" content="{{ asset(icon) }}" />
19 {# Others #}
20 {% else %}
21 <link rel="icon" type="image/png" size="{{ size }}x{{ size }}" href="{{ asset(icon) }}" />
22 {% endif %}
23 {% endfor %}
24 {# stylesheet '//fonts.googleapis.com/css?family=Irish+Grover' '//fonts.googleapis.com/css?family=La+Belle+Aurore' '@RapsysAirBundle/Resources/public/css/{reset,screen}.css' #}
25 {% stylesheet '@rapsys_air_bundle/css/{reset,droidsans,screen}.css' %}
26 <link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
27 {% endstylesheet %}
28 {% endblock %}
29 {% block javascripts %}
30 {#{% javascript '@RapsysAir/js/*.js' %}
31 <script type="text/javascript" src="{{ asset_url }}"></script>
32 {% endjavascript %}#}
33 {% endblock %}
34 {% block title %}{{ title }}{% endblock %}
35 {% block body %}
36 {% block header %}
37 <header id="header">
38 {% block header_title %}<h1><a href="{{ site_url }}"><img src="{{ asset(site_logo) }}" alt="{{ site_title }}" /></a></h1>{% endblock %}
39 {% block header_nav %}
40 <nav>
41 <h2>{% trans %}Navigation{% endtrans %}</h2>
42 <a href="{{ path('rapsys_air_location') }}">{% trans %}Locations{% endtrans %}</a>
43 <a href="{{ path('rapsys_air_user') }}">{% trans %}Users{% endtrans %}</a>
44 <a href="{{ path('rapsys_air_contact') }}">{% trans %}Contact{% endtrans %}</a>
45 <a href="{{ path('rapsys_air_policy') }}">{% trans %}Policy{% endtrans %}</a>
46 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
47 <a href="{{ path('rapsys_user_logout') }}">{% trans %}Logout{% endtrans %}</a>
48 {% else %}
49 <a href="{{ path('rapsys_user_login') }}">{% trans %}Login{% endtrans %}</a>
50 <a href="{{ path('rapsys_user_register') }}">{% trans %}Register{% endtrans %}</a>
51 {% endif %}
52 </nav>
53 {% endblock %}
54 {#
55 {% block site_subtitle %}{% endblock %}
56 {% block site_tagline %}
57 {% if tags is defined and tags %}
58 <ul>
59 {% for id, tag in tags %}
60 <li><h2><a href="#{{id}}">{{tag}}</a></h2></li>
61 {% endfor %}
62 </ul>
63 {% endif %}
64 {% endblock %}
65 #}
66 </header>
67 {% endblock %}
68 {% block message %}
69 {# pass an array argument to get the messages of those types (['warning', 'error']) #}
70 {% for label, messages in app.flashes %}
71 {% if messages %}
72 <div class="flash {{label}}">
73 <ul>
74 {% for message in messages %}
75 <li>{{ message }}</li>
76 {% endfor %}
77 </ul>
78 </div>
79 {% endif %}
80 {% endfor %}
81 {% endblock %}
82 {#
83 {% block sidebar %}<aside id="sidebar"></aside>{% endblock %}
84 #}
85 {% block content %}
86 <section id="content">
87 <h2><a href="{{ path('rapsys_air_homepage') }}">{{ section }}</a></h2>
88 <p>{% trans %}Outdoor space reservation system{% endtrans %}</p>
89 </section>
90 {% endblock %}
91 {% block footer %}
92 <footer id="footer">
93 <span>&nbsp;</span>
94 <details><summary>{{ copy_long }}</summary><span>{{ copy_short }}</span></details>
95 <span>&nbsp;</span>
96 </footer>
97 {% endblock %}
98 {% endblock %}