= 200 && $statusCode < 300) || ($method == 'COMMAND' && $statusCode == 0)) {
$calloutClass = 'callout-success';
} elseif ($statusCode >= 300 && $statusCode < 400) {
$calloutClass = 'callout-info';
} else {
$calloutClass = 'callout-danger';
}
?>
$meta['tag'], 'panel' => $activePanel->id];
$items[] = [
'label' => $label,
'url' => $url,
];
if (++$count >= 10) {
break;
}
}
?>
= NavigationButton::widget(
['manifest' => $manifest, 'tag' => $tag, 'panel' => $activePanel, 'button' => 'Prev']
) ?>
= NavigationButton::widget(
['manifest' => $manifest, 'tag' => $tag, 'panel' => $activePanel, 'button' => 'Next']
) ?>
=Html::a('All', ['index'], ['class' => ['btn', 'btn-light']]);?>
=Html::a('Latest', ['view', 'panel' => $activePanel->id], ['class' => ['btn', 'btn-light']]);?>
=Html::button('Last 10', [
'type' => 'button',
'class' => ['btn', 'btn-light', 'dropdown-toggle'],
'data' => [
'toggle' => 'dropdown'
],
'aria-haspopup' => 'true',
'aria-expanded' => 'false'
]);?>
=\yii\widgets\Menu::widget([
'encodeLabels' => false,
'items' => $items,
'options' => ['class' => 'dropdown-menu'],
'itemOptions' => ['class' => 'dropdown-item']
]);?>