2 {% set request_handler %}
3 <a href="{{ idelink(collector.controller.file, collector.controller.line)|raw }}">{{ abbr(collector.controller.class)|raw }}
4 ::{{ collector.controller.method }}</a>
7 {% set request_status_code_color = (400 > collector.statuscode) ? ((200 == collector.statuscode) ? 'green' : 'yellow') : 'red' %}
9 {% set request_route = collector.route ? collector.route : 'NONE' %}
12 <a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: 'request'}) }}" title="{{ 'Request'|t }}">
13 <img width="28" height="28" alt="{{ 'Request'|t }}"
14 src="data:image/png;base64,{{ collector.icon }}">
15 <span class="sf-toolbar-status sf-toolbar-status-{{ request_status_code_color }}"
16 title="{{ collector.statustext }}">{{ collector.statuscode }}</span>
22 <div class="sf-toolbar-info-piece">
23 <b>{{ 'Status'|t }}</b>
24 <span class="sf-toolbar-status sf-toolbar-status-{{ request_status_code_color }}">{{ collector.statuscode }}</span> {{ collector.statustext }}
26 <div class="sf-toolbar-info-piece">
27 <b>{{ 'Controller'|t }}</b>
30 <div class="sf-toolbar-info-piece">
31 <b>{{ 'Route name'|t }}</b>
32 <span>{{ request_route }}</span>
37 <div class="sf-toolbar-block">
38 <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
39 <div class="sf-toolbar-info">{{ text|default('') }}</div>
44 <script id="request" type="text/template">
45 <h2 class="panel__title">{{ 'Request'|t }}</h2>
47 <% if (!_.isEmpty(data.request_query)) { %>
48 <div class="panel__container">
49 <table class="table--duo">
51 <th>{{ 'GET Parameters'|t }}</th>
52 <th>{{ 'Value'|t }}</th>
55 <% _.each( data.request_query, function( item, key ){ %>
66 <% if (!_.isEmpty(data.request_request)) { %>
67 <div class="panel__container">
68 <table class="table--duo">
70 <th>{{ 'POST Parameters'|t }}</th>
71 <th>{{ 'Value'|t }}</th>
74 <% _.each( data.request_request, function( item, key ){ %>
77 <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
85 <div class="panel__container">
86 <table class="table--duo">
88 <th>{{ 'Attributes'|t }}</th>
89 <th>{{ 'Value'|t }}</th>
92 <% _.each( data.request_attributes, function( item, key ){ %>
96 <% if(key == '_controller') { %>
97 <td><%= Drupal.webprofiler.helpers.classLink(data.controller) %></td>
99 <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
107 <% if (!_.isEmpty(data.request_cookies)) { %>
108 <div class="panel__container">
109 <table class="table--duo">
111 <th>{{ 'Cookies'|t }}</th>
112 <th>{{ 'Value'|t }}</th>
115 <% _.each( data.request_cookies, function( item, key ){ %>
118 <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
126 <div class="panel__container">
127 <table class="table--duo">
129 <th>{{ 'Request headers'|t }}</th>
130 <th>{{ 'Value'|t }}</th>
133 <% _.each( data.request_headers, function( item, key ){ %>
136 <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
143 <% if (!_.isEmpty(data.content)) { %>
144 <div class="panel__container">
145 <div class="h--word-broken"><%- data.content %></div>
149 <% if (!_.isEmpty(data.access_check)) { %>
150 <div class="panel__container">
151 <table class="table--duo">
153 <th>{{ 'Path'|t }}</th>
154 <th>{{ 'Access check'|t }}</th>
157 <% _.each(data.access_check, function(items, key){ %>
161 <% _.each(items, function(item){ %>
162 <%- item.service_id %>
172 <div class="panel__container">
173 <table class="table--duo">
175 <th>{{ 'Server Parameters'|t }}</th>
176 <th>{{ 'Value'|t }}</th>
179 <% _.each( data.request_server, function( item, key ){ %>
182 <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
189 <div class="panel__container">
190 <table class="table--duo">
192 <th>{{ 'Response headers'|t }}</th>
193 <th>{{ 'Value'|t }}</th>
196 <% _.each( data.response_headers, function( item, key ){ %>
199 <td><%= Drupal.webprofiler.helpers.frm(item) %></td>