index.php 1.22 KB
Newer Older
Qiang Xue committed
1 2 3 4 5 6
<?php

use yii\helpers\Html;

/**
 * @var \yii\base\View $this
Qiang Xue committed
7
 * @var array $manifest
Qiang Xue committed
8
 */
Qiang Xue committed
9 10

$this->registerAssetBundle('yii/bootstrap/dropdown');
Qiang Xue committed
11
$this->title = 'Yii Debugger';
Qiang Xue committed
12
?>
Qiang Xue committed
13
<div class="default-index">
Qiang Xue committed
14 15 16
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container">
17 18 19
				<div class="yii-debug-toolbar-block title">
					Yii Debugger
				</div>
Qiang Xue committed
20 21 22
			</div>
		</div>
	</div>
Qiang Xue committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

	<div class="container-fluid">
		<div class="row-fluid">
			<h1>Available Debug Data</h1>
			<table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;">
				<thead>
					<tr>
						<th style="width: 120px;">Tag</th>
						<th style="width: 160px;">Time</th>
						<th style="width: 120px;">IP</th>
						<th style="width: 60px;">Method</th>
						<th>URL</th>
					</tr>
				</thead>
				<tbody>
					<?php foreach ($manifest as $tag => $data): ?>
					<tr>
						<td><?php echo Html::a($tag, array('view', 'tag' => $tag)); ?></td>
						<td><?php echo date('Y-m-d h:i:sa', $data['time']); ?></td>
						<td><?php echo $data['ip']; ?></td>
						<td><?php echo $data['method']; ?></td>
						<td><?php echo $data['url']; ?></td>
					</tr>
					<?php endforeach; ?>
				</tbody>
			</table>
		</div>
	</div>
Qiang Xue committed
51
</div>