Changeset 1290 for trunk/system/views

Show
Ignore:
Timestamp:
11/26/2007 08:39:20 PM (12 months ago)
Author:
PugFish
Message:

Removed "time" from the end of total execution time benchmark
Changed row to use the new total row style

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana_profiler.php

    r1289 r1290  
    102102foreach ($benchmarks as $name => $benchmark): 
    103103 
     104        $class = ($name == 'total_execution') ? ' class="kp-totalrow"' : text::alternate('', ' class="kp-altrow"'); 
    104105        $name = ucwords(str_replace(array('_', '-'), ' ', $name)); 
    105106 
    106107?> 
    107                         <tr<?php echo text::alternate('', ' class="kp-altrow"') ?>> 
    108                                 <td><?php echo $name ?></td> 
    109                                 <td class="kp-column kp-data"><?php echo number_format($benchmark['time'], 4) ?></td> 
    110                                 <td class="kp-column kp-data"><?php echo number_format($benchmark['memory'] / 1024 / 1024, 2) ?> MB</td> 
    111                         </tr> 
     108                <tr<?php echo $class ?>> 
     109                        <td><?php echo $name ?></td> 
     110                        <td class="kp-column kp-data"><?php echo number_format($benchmark['time'], 4) ?></td> 
     111                        <td class="kp-column kp-data"><?php echo number_format($benchmark['memory'] / 1024 / 1024, 2) ?> MB</td> 
     112                </tr> 
    112113<?php 
    113114