layout.html.twig 1016 B

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