layout.html.twig 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {% extends 'WebProfilerBundle:Profiler:base.html.twig' %}
  2. {% block body %}
  3. {% render 'WebProfilerBundle:Profiler:toolbar' with { 'token': token, 'position': 'normal' } %}
  4. <div id="content">
  5. {% include 'WebProfilerBundle:Profiler:header.html.twig' only %}
  6. {% if not profiler.isempty %}
  7. <div class="resume">
  8. <p>
  9. <strong><a href="{{ profiler.url }}">{{ profiler.url }}</a></strong>
  10. <span class="date">
  11. <strong>by {{ profiler.ip }}</strong> at <strong>{{ profiler.time|date('r') }}</strong>
  12. </span>
  13. </p>
  14. </div>
  15. {% endif %}
  16. <div class="main">
  17. <div class="clear_fix">
  18. <div class="navigation">
  19. {% if templates is defined %}
  20. <ul class="menu_profiler">
  21. {% for name, template in templates %}
  22. {% set menu %}{{ template.renderBlock('menu', { 'collector': profiler.get(name)}) }}{% endset %}
  23. {% if menu != '' %}
  24. <li class="{{ name }}{% if name == panel %} selected{% endif %}">
  25. <a href="{{ path('_profiler_panel', { 'token': token, 'panel': name }) }}">{{ menu|raw }}</a>
  26. </li>
  27. {% endif %}
  28. {% endfor %}
  29. </ul>
  30. {% endif %}
  31. {% render 'WebProfilerBundle:Profiler:searchBar' %}
  32. {% include 'WebProfilerBundle:Profiler:admin.html.twig' with { 'token': token } only %}
  33. </div>
  34. <div class="collector_content">
  35. {% block panel '' %}
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. {% endblock %}