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