layout.twig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends 'WebProfilerBundle:Profiler:base.twig' %}
  2. {% block body %}
  3. <div class="header">
  4. <h1>
  5. <img alt="" src="{% asset 'bundles/webprofiler/images/profiler.png' %}" />
  6. Symfony Profiler
  7. </h1>
  8. <div>
  9. <em>{{ profiler.url }}</em> by <em>{{ profiler.ip }}</em> at <em>{{ profiler.time|date('r') }}</em>
  10. </div>
  11. </div>
  12. {% render 'WebProfilerBundle:Profiler:toolbar' with { 'token': token, 'position': 'normal' } %}
  13. <table>
  14. <tr><td class="menu">
  15. <ul>
  16. {% for name, template in templates %}
  17. {% set menu %}{{ template.renderBlock('menu', { 'collector': profiler.get(name)}) }}{% endset %}
  18. {% if menu %}
  19. <li
  20. {% if name == panel %}class="selected"{% endif %}
  21. >
  22. <a href="{{ path('_profiler_panel', { 'token': token, 'panel': name }) }}">{{ menu|raw }}</a>
  23. </li>
  24. {% endif %}
  25. {% endfor %}
  26. </ul>
  27. {% render 'WebProfilerBundle:Profiler:searchBar' with { 'token': token } %}
  28. {% include 'WebProfilerBundle:Profiler:admin.twig' with { 'token': token } only %}
  29. </td><td class="main">
  30. <div class="content">
  31. {% block panel '' %}
  32. </div>
  33. </td></tr>
  34. </table>
  35. {% endblock %}