summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-23 11:51:17 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-23 11:51:17 +0300
commit63c5911961909b12b328b4182ba0f4b0e13c1bd6 (patch)
tree30a4c23fd832eb1c10aa78c3a9fd2a0f20a5904b /app/views/layouts
parent5f3b2be8a06708922c1bba0f83eb24264982bebf (diff)
downloadgitlab-ce-63c5911961909b12b328b4182ba0f4b0e13c1bd6.tar.gz
Dont render dashbaord nav if user is not signed in
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/_page.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_page.html.haml b/app/views/layouts/_page.html.haml
index 19da8771c54..1c164800b0e 100644
--- a/app/views/layouts/_page.html.haml
+++ b/app/views/layouts/_page.html.haml
@@ -3,7 +3,7 @@
.sidebar-wrapper
- if defined?(sidebar)
= render(sidebar)
- - else
+ - elsif current_user
= render 'layouts/nav/dashboard'
.collapse-nav
= render partial: 'layouts/collapse_button'