Commit 8c8627fa39f011333682dd66b8b56b86da4bb2b3
1 parent
1a919fad
Password form
Showing
2 changed files
with
8 additions
and
16 deletions
Show diff stats
backend/views/layouts/main.php
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** |
4 | - * @var string $content | |
5 | - * @var \yii\web\View $this | |
4 | + * @var string $content | |
5 | + * @var View $this | |
6 | 6 | */ |
7 | 7 | |
8 | 8 | use artweb\artbox\core\assets\ArtboxCoreAsset; |
9 | 9 | use artweb\artbox\core\models\User; |
10 | + use artweb\artbox\core\widgets\FlashWidget; | |
10 | 11 | use yii\helpers\Html; |
11 | 12 | use yii\web\View; |
12 | 13 | |
... | ... | @@ -172,7 +173,7 @@ |
172 | 173 | <ul class="nav navbar-nav navbar-right"> |
173 | 174 | <li class=""> |
174 | 175 | <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> |
175 | - <img src="http://placehold.it/128x128" alt=""><?= Yii::$app->user->identity->username ?> | |
176 | + <img src="http://placehold.it/128x128" alt=""><?= $user->username ?> | |
176 | 177 | <span class=" fa fa-angle-down"></span> |
177 | 178 | </a> |
178 | 179 | <ul class="dropdown-menu dropdown-usermenu pull-right"> |
... | ... | @@ -244,13 +245,10 @@ |
244 | 245 | </div> |
245 | 246 | |
246 | 247 | </div> |
247 | - | |
248 | - <div id="custom_notifications" class="custom-notifications dsp_none"> | |
249 | - <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group"> | |
250 | - </ul> | |
251 | - <div class="clearfix"></div> | |
252 | - <div id="notif-group" class="tabbed_notifications"></div> | |
253 | - </div> | |
248 | + | |
249 | + <?php | |
250 | + echo FlashWidget::widget(); | |
251 | + ?> | |
254 | 252 | <!-- /footer content --> |
255 | 253 | <?php $this->endBody(); ?> |
256 | 254 | </body> | ... | ... |