Browse Source

Fixes #1193

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
75dc290a24
  1. 2
      apps/advanced/backend/views/layouts/main.php
  2. 2
      apps/advanced/frontend/views/layouts/main.php
  3. 2
      apps/basic/views/layouts/main.php
  4. 2
      extensions/gii/views/layouts/main.php

2
apps/advanced/backend/views/layouts/main.php

@ -38,7 +38,7 @@ AppAsset::register($this);
$menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']]; $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']];
} }
echo Nav::widget([ echo Nav::widget([
'options' => ['class' => 'navbar-nav pull-right'], 'options' => ['class' => 'navbar-nav navbar-right'],
'items' => $menuItems, 'items' => $menuItems,
]); ]);
NavBar::end(); NavBar::end();

2
apps/advanced/frontend/views/layouts/main.php

@ -42,7 +42,7 @@ AppAsset::register($this);
$menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']]; $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , 'url' => ['/site/logout']];
} }
echo Nav::widget([ echo Nav::widget([
'options' => ['class' => 'navbar-nav pull-right'], 'options' => ['class' => 'navbar-nav navbar-right'],
'items' => $menuItems, 'items' => $menuItems,
]); ]);
NavBar::end(); NavBar::end();

2
apps/basic/views/layouts/main.php

@ -30,7 +30,7 @@ AppAsset::register($this);
], ],
]); ]);
echo Nav::widget([ echo Nav::widget([
'options' => ['class' => 'navbar-nav pull-right'], 'options' => ['class' => 'navbar-nav navbar-right'],
'items' => [ 'items' => [
['label' => 'Home', 'url' => ['/site/index']], ['label' => 'Home', 'url' => ['/site/index']],
['label' => 'About', 'url' => ['/site/about']], ['label' => 'About', 'url' => ['/site/about']],

2
extensions/gii/views/layouts/main.php

@ -26,7 +26,7 @@ NavBar::begin([
'options' => ['class' => 'navbar-inverse navbar-fixed-top'], 'options' => ['class' => 'navbar-inverse navbar-fixed-top'],
]); ]);
echo Nav::widget([ echo Nav::widget([
'options' => ['class' => 'nav navbar-nav pull-right'], 'options' => ['class' => 'nav navbar-nav navbar-right'],
'items' => [ 'items' => [
['label' => 'Home', 'url' => ['default/index']], ['label' => 'Home', 'url' => ['default/index']],
['label' => 'Help', 'url' => 'http://www.yiiframework.com/doc/guide/topics.gii'], ['label' => 'Help', 'url' => 'http://www.yiiframework.com/doc/guide/topics.gii'],

Loading…
Cancel
Save