summaryrefslogtreecommitdiff
path: root/app/views/layouts/header/_default.html.haml
diff options
context:
space:
mode:
authorDimitrie Hoekstra <dimitrie@gitlab.com>2017-04-19 16:43:57 +0000
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-04-19 16:43:57 +0000
commit3b2adb5bd7b2f4c77147a1f6adc7f7f46124a40a (patch)
treef3ee15d920ed88abfec6a30bbb7d540c03d06681 /app/views/layouts/header/_default.html.haml
parent364050c1f1387170fc70128dd2eec570cba89999 (diff)
downloadgitlab-ce-3b2adb5bd7b2f4c77147a1f6adc7f7f46124a40a.tar.gz
Added profile name to user dropdown
Diffstat (limited to 'app/views/layouts/header/_default.html.haml')
-rw-r--r--app/views/layouts/header/_default.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml
index a9893dea68f..66f75f1c2bf 100644
--- a/app/views/layouts/header/_default.html.haml
+++ b/app/views/layouts/header/_default.html.haml
@@ -67,6 +67,11 @@
= icon('caret-down')
.dropdown-menu-nav.dropdown-menu-align-right
%ul
+ %li.current-user
+ .user-name.bold
+ = current_user.name
+ @#{current_user.username}
+ %li.divider
%li
= link_to "Profile", current_user, class: 'profile-link', aria: { label: "Profile" }, data: { user: current_user.username }
%li