Commit 75dc290a by Qiang Xue

Fixes #1193

parent 36c28bee
...@@ -38,7 +38,7 @@ AppAsset::register($this); ...@@ -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();
......
...@@ -42,7 +42,7 @@ AppAsset::register($this); ...@@ -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();
......
...@@ -30,7 +30,7 @@ AppAsset::register($this); ...@@ -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']],
......
...@@ -26,7 +26,7 @@ NavBar::begin([ ...@@ -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'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment