summaryrefslogtreecommitdiff
path: root/app/views/layouts/explore.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-03 21:53:55 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-03 21:53:55 +0200
commit0145e8ea210b2c0e1fac204126bf460063d1e17f (patch)
treefea8ea51fff7c1b8ba64d9f91a4760face03280e /app/views/layouts/explore.html.haml
parentb008273883ac4c73652e73b418ffece2848fe40b (diff)
downloadgitlab-ce-0145e8ea210b2c0e1fac204126bf460063d1e17f.tar.gz
Set page title based on content in dashboard area
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/layouts/explore.html.haml')
-rw-r--r--app/views/layouts/explore.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/layouts/explore.html.haml b/app/views/layouts/explore.html.haml
index 17fee9c510d..9098554e6f0 100644
--- a/app/views/layouts/explore.html.haml
+++ b/app/views/layouts/explore.html.haml
@@ -1,6 +1,7 @@
- page_title "Explore"
- if current_user
- - header_title "Dashboard", root_path
+ - unless @header_title
+ - header_title "Projects", (current_user ? root_path : explore_root_path)
- else
- header_title "Explore GitLab", explore_root_path
- sidebar "dashboard"