Skip to content

Commit

Permalink
Time: link to stat for guests in the header menu
Browse files Browse the repository at this point in the history
  • Loading branch information
boryashkin committed Mar 23, 2017
1 parent e01c833 commit 4f18cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
['label' => 'Home', 'url' => ['/site/index']],
['label' => 'Plans', 'url' => ['/time/plans/index']],
['label' => 'Wallet', 'url' => ['/wallet']],
['label' => 'Time', 'url' => ['/time']],
['label' => 'Time', 'url' => Yii::$app->user->isGuest ? ['/time/stat'] : ['/time']],
['label' => 'Reading', 'url' => ['/reading']],
['label' => 'Diary', 'url' => ['/diary']],
['label' => 'Settings', 'items' => [
Expand Down

0 comments on commit 4f18cf7

Please sign in to comment.