Add Avatar in the settings sidebar

This commit is contained in:
Yoginth 2019-01-23 08:43:49 +00:00 committed by Phil Hughes
parent e67af06989
commit eae751fafe
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
.context-header
= link_to profile_path, title: _('Profile Settings') do
.avatar-container.s40.settings-avatar
= sprite_icon('user', size: 24)
= image_tag avatar_icon_for_user(current_user, 40), class: "avatar s40 avatar-tile", alt: current_user.name
.sidebar-context-title User Settings
%ul.sidebar-top-level-items
= nav_link(path: 'profiles#show', html_options: {class: 'home'}) do

View File

@ -0,0 +1,5 @@
---
title: Added Avatar in the settings sidebar
merge_request: 24515
author: Yoginth
type: changed