7 $this->
pageTitle =
'Available Debug Data - Yii Debugger';
9 <div
class=
"default-index">
11 <div
class=
"navbar-inner">
12 <div
class=
"container">
13 <div
class=
"yii2-debug-toolbar-block title">
20 <div
class=
"container-fluid">
21 <div
class=
"row-fluid">
22 <h1>Available Debug Data</h1>
23 <table
class=
"table table-condensed table-bordered table-striped table-hover table-filtered" style=
"table-layout: fixed;">
26 <th style=
"width:20px;text-align:center;"><i
class=
"icon-star"></i></th>
27 <th style=
"width: 160px;">Time</th>
28 <th style=
"width: 120px;">IP</th>
29 <th style=
"width: 60px;">Method</th>
30 <th style=
"width: 40px;">Code</th>
35 <?php
foreach ($manifest as $tag =>
$data): ?>
37 <td style=
"text-align:center;">
38 <?php echo CHtml::link(
39 '<i class="icon-star' . (!$this->owner->getLock($tag) ?
'-empty' :
'') .
'"></i>',
40 array(
'lock',
'tag' => $tag),
42 'class' =>
'lock' . ($this->owner->getLock($tag) ?
' active' :
''),
43 'title' =>
'Lock or unlock of deleting',
47 <td><?php echo CHtml::link(date(
'Y-m-d h:i:s',
$data[
'time']), array(
'view',
'tag' => $tag,
'panel' =>
'request')); ?></td>
48 <td><?php echo
$data[
'ip']; ?></td>
49 <td><?php echo $data[
'method']; ?></td>
51 <td style=
"word-break:break-all;">
52 <?php echo CHtml::encode(urldecode($data[
'url'])); ?>
53 <?php echo CHtml::link(
'<i class="icon-share"></i>', $data[
'url'], array(
'class' =>
'share',
'target' =>
'blank')); ?>
63 Yii::app()->clientScript->registerScript(__CLASS__ .
'#index', <<<JS
64 $(
'a.lock').tooltip().click(
function(e){
67 $.get(el.attr(
'href'),
function(data){
69 $(el).addClass(
'active').children(
'i').addClass(
'icon-star').removeClass(
'icon-star-empty');
71 $(el).removeClass(
'active').children(
'i').addClass(
'icon-star-empty').removeClass(
'icon-star');
77 Yii::app()->clientScript->registerCss(__CLASS__ .
'#view', <<<CSS
78 a.lock {opacity: 0.5;}
79 a.lock.active, a.lock:hover {opacity: 1;}
80 a.share {display:none}
81 td:hover a.share {display:
inline;opacity:0.7;}
82 td:hover a.share:hover {opacity:1;}