forked from jasir/RequestsPanel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbar.requests.panel.latte
48 lines (46 loc) · 1.26 KB
/
bar.requests.panel.latte
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
48
<h1>{$numberOfLogs} {$numberOfLogs|plural,'request','requests'}</h1>
<div class="nette-inner">
{if count($logs) > 0}
<table>
<tbody>
{foreach $logs as $name => $entry}
<tr>
<th colspan=2>
<span style="font-weight:normal;display:block;float:right;padding-left:7px">{$entry['info']['time']} ms</span>
{$entry['info']['request']}
<a style="" href="{$entry['info']['uri']}">{$entry['info']['uriPath']}</a>
</th>
</tr>
<tr>
<td nowrap>
<table width=100%>
<tr><th>Action</th><td><code>{$entry['info']['presenter']}</code></td></tr>
<tr><th>Response</th><td><code>{$entry['info']['response']}</code></td></tr>
{if $entry['info']['signal']}<tr><th>Signal</th><td>{$entry['info']['signal']}</td></tr>{/if}
<tr>
<th>Details</th>
<td width=100%>
<a class="nette-toggler" rel="next" href="#"><abbr>►</abbr></a>
<table class="nette-hidden">
{foreach $entry['dumps'] as $key => $dump}
<tr>
{if !is_numeric($key)}
<th><strong>{$key}</strong></th>
{/if}
<td>
{!$dump}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</tbody>
</table>
{/foreach}
</tbody>
</table>
{else}
<p>No requests</p>
{/if}
</div>