projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix end of lines.
[platal.git]
/
templates
/
backtrace.tpl
diff --git
a/templates/backtrace.tpl
b/templates/backtrace.tpl
index
c77fe16
..
68b561e
100644
(file)
--- a/
templates/backtrace.tpl
+++ b/
templates/backtrace.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-20
09
Polytechnique.org *}
+{* Copyright (C) 2003-20
11
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-20,39
+20,58
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
+<script type="text/javascript">
+{literal}
+// <![CDATA[
+$(function() {
+ $(".backtrace").click(function() {
+ $(this).children(".bt_details").toggle();
+ });
+});
+// ]]>
+{/literal}
+</script>
+
{foreach from=$backtraces key=bt_name item=trace}
<div class="backtrace">
<h1>
{if $trace->error}<span style="color: #f00">{/if}
{foreach from=$backtraces key=bt_name item=trace}
<div class="backtrace">
<h1>
{if $trace->error}<span style="color: #f00">{/if}
- Exécution de {$bt_name} : {$trace->traces|@count} actions en {$trace->totaltime|string_format:"%.3f"}s (hover-me pour la trace)
+ Exécution de {$bt_name} :
+ {$trace->traces|@count} actions en {$trace->totaltime|string_format:"%.3f"}s
+ (click to show/hide the trace)
{if $trace->error}</span>{/if}
</h1>
{if $trace->error}</span>{/if}
</h1>
- <div class="
hid
e">
+ <div class="
bt_details" style="display: non
e">
{foreach item=query from=$trace->traces}
{foreach item=query from=$trace->traces}
-{if $query.data}
+{if $query.data
&& $query.data[0]|@count > 1
}
{assign var=cols value=$query.data[0]|@count}
{else}
{assign var=cols value=$query.data[0]|@count}
{else}
-{assign var=cols value=
1
}
+{assign var=cols value=
2
}
{/if}
<table class="bicol" style="width: 75%; font-size: smaller; margin-left:2px; margin-top: 3px;">
<tr class="impair">
{/if}
<table class="bicol" style="width: 75%; font-size: smaller; margin-left:2px; margin-top: 3px;">
<tr class="impair">
- <td
colspan="{$cols}
">
+ <td
style="width: 5em
">
<strong>ACTION:</strong>
<strong>ACTION:</strong>
+ </td>
+ <td colspan="{$cols-1}" style="align: left">
<pre style="padding: 0; margin: 0;">{$query.action}</pre>
<pre style="padding: 0; margin: 0;">{$query.action}</pre>
- <br/>
</td>
</tr>
{if $query.error}
<tr>
</td>
</tr>
{if $query.error}
<tr>
- <td colspan="{$cols}">
- <strong style="color: #f00">ERROR:</strong><br />
+ <td style="width: 5em">
+ <strong style="color: #f00">ERROR:</strong>
+ </td>
+ <td colspan="{$cols-1}">
{$query.error|nl2br}
</td>
</tr>
{else}
<tr>
{$query.error|nl2br}
</td>
</tr>
{else}
<tr>
- <td colspan="{$cols}">
- <strong>INFO:</strong><br />
+ <td style="width: 5em">
+ <strong>INFO:</strong>
+ </td>
+ <td colspan="{$cols-1}">
{$query.rows} ligne{if $query.rows > 1}s{/if} en {$query.exectime|string_format:"%.3f"}s
</td>
</tr>
{$query.rows} ligne{if $query.rows > 1}s{/if} en {$query.exectime|string_format:"%.3f"}s
</td>
</tr>