layout.html.twig 1.9 KB

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