summaryrefslogtreecommitdiff
path: root/app/views/layouts/nav/_profile.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-10 13:07:24 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-10 13:29:46 +0200
commit4dfded8934b9ba04317bf53c2ad1f9bd3a31cc6d (patch)
treea87311ed85e4ce17ce34f433f2ff413e02bf565d /app/views/layouts/nav/_profile.html.haml
parent82a3f2f109f957b8f6a5be84dd0f6e0170cecd4f (diff)
downloadgitlab-ce-4dfded8934b9ba04317bf53c2ad1f9bd3a31cc6d.tar.gz
Make left menu more hierarchical and less contextual by adding back item at top
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/layouts/nav/_profile.html.haml')
-rw-r--r--app/views/layouts/nav/_profile.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/layouts/nav/_profile.html.haml b/app/views/layouts/nav/_profile.html.haml
index de5544268a1..00d3cb300d4 100644
--- a/app/views/layouts/nav/_profile.html.haml
+++ b/app/views/layouts/nav/_profile.html.haml
@@ -1,4 +1,12 @@
%ul.nav.nav-sidebar
+ = nav_link do
+ = link_to root_path, title: 'Back to dashboard', data: {placement: 'right'} do
+ = icon('caret-square-o-left fw')
+ %span
+ Back to Dashboard
+
+ %li.separate-item
+
= nav_link(path: 'profiles#show', html_options: {class: 'home'}) do
= link_to profile_path, title: 'Profile', data: {placement: 'right'} do
= icon('user fw')