Skip to content

Commit

Permalink
Fixed breadcrumbs subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Aug 27, 2015
1 parent 6c6002e commit a319b0b
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/views/account/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$this->breadcrumbs->setItems([
$this->title,
]);
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list'; ?>
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list'; ?>

<?php Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true])); ?>

Expand Down
4 changes: 2 additions & 2 deletions src/views/backup/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

$this->title = Yii::t('app', 'Backups');
$this->params['breadcrumbs'][] = $this->title;
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

?>

<?= backupGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'filterModel' => $model,
'columns' => [
'checkbox',
'seller',
Expand Down
4 changes: 2 additions & 2 deletions src/views/backuping/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

$this->title = Yii::t('app', 'Backupings');
$this->params['breadcrumbs'][] = $this->title;
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

?>

<?= backupingGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'filterModel' => $model,
'columns' => [
'checkbox',
'seller',
Expand Down
2 changes: 1 addition & 1 deletion src/views/crontab/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

$this->title = Yii::t('app', 'Crontabs');
$this->params['breadcrumbs'][] = $this->title;
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

?>

Expand Down
2 changes: 1 addition & 1 deletion src/views/db/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$this->title = Yii::t('app', 'Databases');
$this->breadcrumbs->setItems([$this->title]);
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true])); ?>

Expand Down
2 changes: 1 addition & 1 deletion src/views/hdomain/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$this->breadcrumbs->setItems([
$this->title,
]);
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true])); ?>

Expand Down
4 changes: 2 additions & 2 deletions src/views/ip/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

$this->title = Yii::t('app', 'Ips');
$this->params['breadcrumbs'][] = $this->title;
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

?>

<?= ipGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'filterModel' => $model,
'columns' => [
'checkbox',
'seller',
Expand Down
2 changes: 1 addition & 1 deletion src/views/mail/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

$this->title = Yii::t('app', 'Mails');
$this->params['breadcrumbs'][] = $this->title;
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

?>

Expand Down
4 changes: 2 additions & 2 deletions src/views/request/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

$this->title = Yii::t('app', 'Requests');
$this->params['breadcrumbs'][] = $this->title;
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

?>

<?= requestGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'filterModel' => $model,
'columns' => [
'checkbox',
'seller',
Expand Down
4 changes: 2 additions & 2 deletions src/views/service/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

$this->title = Yii::t('app', 'Services');
$this->params['breadcrumbs'][] = $this->title;
$this->params['subtitle'] = Yii::$app->request->queryParams ? 'filtered list' : 'full list';
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? 'filtered list' : 'full list';

?>

<?= serviceGridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'filterModel' => $model,
'columns' => [
'checkbox',
'seller',
Expand Down

0 comments on commit a319b0b

Please sign in to comment.