]>
Commit | Line | Data |
---|---|---|
93fd4692 NL |
1 | {% extends "TwigBundle::layout.html.twig" %} |
2 | ||
3 | {% block head %} | |
4 | <link rel="icon" sizes="16x16" href="{{ asset('favicon.ico') }}" /> | |
5 | <link rel="stylesheet" href="{{ asset('bundles/acmedemo/css/demo.css') }}" /> | |
6 | {% endblock %} | |
7 | ||
8 | {% block title 'Demo Bundle' %} | |
9 | ||
10 | {% block body %} | |
11 | {% for flashMessage in app.session.flashbag.get('notice') %} | |
12 | <div class="flash-message"> | |
13 | <em>Notice</em>: {{ flashMessage }} | |
14 | </div> | |
15 | {% endfor %} | |
16 | ||
17 | {% block content_header %} | |
18 | <ul id="menu"> | |
19 | {% block content_header_more %} | |
20 | <li><a href="{{ path('_demo') }}">Demo Home</a></li> | |
21 | {% endblock %} | |
22 | </ul> | |
23 | ||
24 | <div style="clear: both"></div> | |
25 | {% endblock %} | |
26 | ||
27 | <div class="block"> | |
28 | {% block content %}{% endblock %} | |
29 | </div> | |
30 | ||
31 | {% if code is defined %} | |
32 | <h2>Code behind this page</h2> | |
33 | <div class="block"> | |
34 | <div class="symfony-content">{{ code|raw }}</div> | |
35 | </div> | |
36 | {% endif %} | |
37 | {% endblock %} |