| 12345 |
anikendra |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* View Variables Panel Element
|
|
|
4 |
*
|
|
|
5 |
* PHP 5
|
|
|
6 |
*
|
|
|
7 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
|
8 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
9 |
*
|
|
|
10 |
* Licensed under The MIT License
|
|
|
11 |
* Redistributions of files must retain the above copyright notice.
|
|
|
12 |
*
|
|
|
13 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
|
14 |
* @link http://cakephp.org CakePHP(tm) Project
|
|
|
15 |
* @since DebugKit 1.1
|
|
|
16 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
17 |
*/
|
|
|
18 |
?>
|
|
|
19 |
<h2> <?php echo __d('debug_kit', 'Request History'); ?></h2>
|
|
|
20 |
<?php if (empty($content)): ?>
|
|
|
21 |
<p class="warning"><?php echo __d('debug_kit', 'No previous requests logged.'); ?></p>
|
|
|
22 |
<?php else: ?>
|
|
|
23 |
<?php echo count($content); ?> <?php echo __d('debug_kit', 'previous requests available') ?>
|
|
|
24 |
<ul class="history-list">
|
|
|
25 |
<li><?php echo $this->Html->link(__d('debug_kit', 'Restore to current request'),
|
|
|
26 |
'#', array('class' => 'history-link', 'id' => 'history-restore-current')); ?>
|
|
|
27 |
</li>
|
|
|
28 |
<?php foreach ($content as $previous): ?>
|
|
|
29 |
<li><?php echo $this->Html->link($previous['title'], $previous['url'], array('class' => 'history-link')); ?></li>
|
|
|
30 |
<?php endforeach; ?>
|
|
|
31 |
</ul>
|
|
|
32 |
<?php endif;
|