From bc433afe9f7ee2f5ea040df1a09c7c1e5b4d0344 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Fri, 6 Dec 2013 00:54:22 -0500 Subject: [PATCH] Display user profile picture on navbar next to the name --- public/css/app.less | 10 ++++++++++ views/account.jade | 4 ++-- views/layout.jade | 6 ++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/public/css/app.less b/public/css/app.less index 038299bace..94b505faae 100644 --- a/public/css/app.less +++ b/public/css/app.less @@ -4,4 +4,14 @@ body { padding-top: 50px; +} + +.user img { + width: 40px; + height: 40px; + vertical-align: baseline; + margin-top: -15px; + margin-bottom: -15px; + position: relative; + left: -10px; } \ No newline at end of file diff --git a/views/account.jade b/views/account.jade index be466409bd..81874f392d 100644 --- a/views/account.jade +++ b/views/account.jade @@ -18,10 +18,10 @@ block content label.col-sm-2.control-label(for='name') Gender .col-sm-4 label.radio-inline - input(checked=user.profile.gender=='Male', name='gender', type='radio', value='Male') + input(checked=user.profile.gender=='male', name='gender', type='radio', value='male') span Male label.radio-inline - input(checked=user.profile.gender=='Female', name='gender', type='radio', value='Female') + input(checked=user.profile.gender=='female', name='gender', type='radio', value='female') span Female .form-group label.col-sm-2.control-label(for='email') Email diff --git a/views/layout.jade b/views/layout.jade index 877c4b9f67..908b383e2e 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -40,8 +40,10 @@ html li(class=title=='Create Account'?'active':undefined) a(href='/signup') Create Account else - li - a(href='/account') #{user.profile.name} + li.user + a(href='/account') + img(src='#{user.profile.picture}') + | #{user.profile.name} li a(href='/logout') Logout .container