Skip to content

Commit

Permalink
templates: removed unused class .tracy-alt and table
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 3, 2014
1 parent 56a61a5 commit 1a6a756
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 34 deletions.
11 changes: 1 addition & 10 deletions src/Tracy/templates/bar.dumps.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ use Tracy;
color: white;
}

#tracy-debug .tracy-DumpPanel table {
width: 100%;
}

</style>


Expand All @@ -37,11 +33,6 @@ use Tracy;
<h2><?php echo htmlspecialchars($item['title']) ?></h2>
<?php endif ?>

<table>
<?php $i = 0 ?>
<tr class="<?php echo $i++ % 2 ? 'tracy-alt' : '' ?>">
<td><?php echo $item['dump'] ?></td>
</tr>
</table>
<?php echo $item['dump'] ?>
<?php endforeach ?>
</div>
3 changes: 1 addition & 2 deletions src/Tracy/templates/bar.errors.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ use Tracy;

<div class="tracy-inner">
<table>
<?php $i = 0 ?>
<?php foreach ($data as $item => $count): list($file, $line, $message) = explode('|', $item, 3) ?>
<tr class="<?php echo $i++ % 2 ? 'tracy-alt' : '' ?>">
<tr>
<td class="tracy-right"><?php echo $count ? "$count\xC3\x97" : '' ?></td>
<td><pre><?php echo htmlspecialchars($message, ENT_IGNORE), ' in ', Helpers::editorLink($file, $line) ?></pre></td>
</tr>
Expand Down
14 changes: 2 additions & 12 deletions tests/Tracy/Debugger.barDump().expect
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

<div class="tracy-inner tracy-DumpPanel">

<table>
<tr class="">
<td><pre class="tracy-dump"><span class="tracy-toggle"><span class="tracy-dump-array">array</span> (8)</span>
<pre class="tracy-dump"><span class="tracy-toggle"><span class="tracy-dump-array">array</span> (8)</span>
<div><span class="tracy-dump-indent"> </span><span class="tracy-dump-key">0</span> => <span class="tracy-dump-number">10</span>
<span class="tracy-dump-indent"> </span><span class="tracy-dump-key">1</span> => <span class="tracy-dump-number">20.2</span>
<span class="tracy-dump-indent"> </span><span class="tracy-dump-key">2</span> => <span class="tracy-dump-bool">TRUE</span>
Expand All @@ -18,16 +16,8 @@
<div><span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">key1</span> => <span class="tracy-dump-string">"val1"</span> (4)
<span class="tracy-dump-indent"> | </span><span class="tracy-dump-key">key2</span> => <span class="tracy-dump-bool">TRUE</span>
</div></div></pre>
</td>
</tr>
</table>
<h2>String</h2>

<table>
<tr class="">
<td><pre class="tracy-dump"><span class="tracy-dump-string">"&lt;a href="#"&gt;test&lt;/a&gt;"</span> (20)
<pre class="tracy-dump"><span class="tracy-dump-string">"&lt;a href="#"&gt;test&lt;/a&gt;"</span> (20)
</pre>
</td>
</tr>
</table>
</div>%A%
7 changes: 1 addition & 6 deletions tests/Tracy/Debugger.barDump().showLocation.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,9 @@ register_shutdown_function(function() {
<div class="tracy-inner tracy-DumpPanel">
<table>
<tr class="">
<td><pre class="tracy-dump" title="barDump(&#039;value&#039;)
<pre class="tracy-dump" title="barDump(&#039;value&#039;)
in file %a% on line %d%" data-tracy-href="editor:%a%"><span class="tracy-dump-string">"value"</span> (5)
<small>in <a href="%a%">%a%:%d%</a></small></pre>
</td>
</tr>
</table>
</div>
%A%
EOD
Expand Down
8 changes: 4 additions & 4 deletions tests/Tracy/Debugger.warnings.html.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ register_shutdown_function(function() {
Warning: Unsupported declare \'foo\' in %a% on line %d%%A%', $output);

Assert::match('%A%<table>
<tr class="">
<tr>
<td class="tracy-right">1%a%</td>
<td><pre>PHP Strict standards: mktime(): You should be using the time() function instead in %a%:%d%</a></pre></td>
</tr>
<tr class="tracy-alt">
<tr>
<td class="tracy-right">1%a%</td>
<td><pre>PHP Deprecated: mktime(): The is_dst parameter is deprecated in %a%:%d%</a></pre></td>
</tr>
<tr class="">
<tr>
<td class="tracy-right">1%a%</td>
<td><pre>PHP Notice: Undefined variable: x in %a%:%d%</a></pre></td>
</tr>
<tr class="tracy-alt">
<tr>
<td class="tracy-right">1%a%</td>
<td><pre>PHP Warning: %a% in %a%:%d%</a></pre></td>
</tr>
Expand Down

0 comments on commit 1a6a756

Please sign in to comment.