Fix CSS error in backtrace (missing text- before align property)
[platal.git] / templates / backtrace.tpl
CommitLineData
7cb40d85
FB
1{**************************************************************************}
2{* *}
e92ecb8c 3{* Copyright (C) 2003-2011 Polytechnique.org *}
7cb40d85
FB
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
4f6a6e87
FB
23<script type="text/javascript">
24{literal}
25// <![CDATA[
d5494feb 26$(function() {
4f6a6e87
FB
27 $(".backtrace").click(function() {
28 $(this).children(".bt_details").toggle();
29 });
30});
31// ]]>
32{/literal}
33</script>
34
7cb40d85
FB
35{foreach from=$backtraces key=bt_name item=trace}
36<div class="backtrace">
37 <h1>
38 {if $trace->error}<span style="color: #f00">{/if}
4f6a6e87
FB
39 Exécution de {$bt_name}&nbsp;:
40 {$trace->traces|@count} actions en {$trace->totaltime|string_format:"%.3f"}s
41 (click to show/hide the trace)
7cb40d85
FB
42 {if $trace->error}</span>{/if}
43 </h1>
4f6a6e87 44 <div class="bt_details" style="display: none">
7cb40d85 45{foreach item=query from=$trace->traces}
4f6a6e87 46{if $query.data && $query.data[0]|@count > 1}
7cb40d85
FB
47{assign var=cols value=$query.data[0]|@count}
48{else}
4f6a6e87 49{assign var=cols value=2}
7cb40d85
FB
50{/if}
51<table class="bicol" style="width: 75%; font-size: smaller; margin-left:2px; margin-top: 3px;">
52 <tr class="impair">
4f6a6e87 53 <td style="width: 5em">
7cb40d85 54 <strong>ACTION:</strong>
4f6a6e87 55 </td>
c478640f 56 <td colspan="{$cols-1}" style="text-align: left">
7cb40d85 57 <pre style="padding: 0; margin: 0;">{$query.action}</pre>
7cb40d85
FB
58 </td>
59 </tr>
60 {if $query.error}
61 <tr>
4f6a6e87
FB
62 <td style="width: 5em">
63 <strong style="color: #f00">ERROR:</strong>
64 </td>
65 <td colspan="{$cols-1}">
7cb40d85
FB
66 {$query.error|nl2br}
67 </td>
68 </tr>
69 {else}
70 <tr>
4f6a6e87
FB
71 <td style="width: 5em">
72 <strong>INFO:</strong>
73 </td>
74 <td colspan="{$cols-1}">
7cb40d85
FB
75 {$query.rows} ligne{if $query.rows > 1}s{/if} en {$query.exectime|string_format:"%.3f"}s
76 </td>
77 </tr>
78 {/if}
79{if $query.data}
80 <tr>
81 {foreach key=key item=item from=$query.data[0]}
82 <th style="font-size: smaller">{$key}</th>
83 {/foreach}
84 </tr>
85 {foreach item=data_row from=$query.data}
86 <tr class="impair">
87 {foreach item=item from=$data_row}
88 <td class="center" style="font-size: smaller">{$item}</td>
89 {/foreach}
90 </tr>
91 {/foreach}
92{/if}
93</table>
94{/foreach}
95</div>
96</div>
97{/foreach}
98
fa7ffd66 99{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}