예제 #1
0
				<?php foreach ($manifest as $tag => $data): ?>
					<tr>
						<td style="text-align:center;">
							<?php echo CHtml::link(
								'<i class="icon-star' . (!$this->owner->getLock($tag) ? '-empty' : '') . '"></i>',
								array('lock', 'tag' => $tag),
								array(
									'class' => 'lock' . ($this->owner->getLock($tag) ? ' active' : ''),
									'title' => 'Lock or unlock of deleting',
								)
							); ?>
						</td>
						<td><?php echo CHtml::link(date('Y-m-d h:i:s', $data['time']), array('view', 'tag' => $tag)); ?></td>
						<td><?php echo $data['ip']; ?></td>
						<td><?php echo $data['method']; ?></td>
						<td style="text-align:center;"><?php echo isset($data['code']) ? Yii2RequestPanel::getStatusCodeHtml($data['code']) : ''; ?></td>
						<td style="word-break:break-all;">
							<?php echo CHtml::encode(urldecode($data['url'])); ?>
							<?php echo CHtml::link('<i class="icon-share"></i>', $data['url'], array('class' => 'share', 'target' => 'blank')); ?>
						</td>
					</tr>
				<?php endforeach; ?>
				</tbody>
			</table>
		</div>
	</div>
</div>
<?php
Yii::app()->clientScript->registerScript(__CLASS__ . '#index', <<<JS
	$('a.lock').tooltip().click(function(e){
		e.preventDefault();
예제 #2
0
    ?>
						</td>
						<td><?php 
    echo CHtml::link(date('Y-m-d h:i:s', $data['time']), array('view', 'tag' => $tag));
    ?>
</td>
						<td><?php 
    echo $data['ip'];
    ?>
</td>
						<td><?php 
    echo $data['method'];
    ?>
</td>
						<td style="text-align:center;"><?php 
    echo isset($data['code']) ? Yii2RequestPanel::getStatusCodeHtml($data['code']) : '';
    ?>
</td>
						<td style="word-break:break-all;">
							<?php 
    echo CHtml::encode(urldecode($data['url']));
    ?>
							<?php 
    echo CHtml::link('<i class="icon-share"></i>', $data['url'], array('class' => 'share', 'target' => 'blank'));
    ?>
						</td>
					</tr>
				<?php 
}
?>
				</tbody>
예제 #3
0
/* @var Yii2RequestPanel $this */
/* @var int $statusCode */
/* @var string $route */
/* @var string $action */
if ($statusCode) {
    ?>
	<div class="yii2-debug-toolbar-block">
		<a href="<?php 
    echo $this->getUrl();
    ?>
" title="Status code: <?php 
    echo $statusCode;
    ?>
">
			Status <?php 
    echo Yii2RequestPanel::getStatusCodeHtml($statusCode);
    ?>
		</a>
	</div>
<?php 
}
?>
<div class="yii2-debug-toolbar-block">
	<a href="<?php 
echo $this->getUrl();
?>
" title="Route: <?php 
echo $route;
?>
">
		Action <span class="label"><?php