0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Renamed user image data helper to make more sense

This commit is contained in:
John O'Nolan 2013-09-22 23:06:12 +02:00 committed by Hannah Wolfe
parent f45d362b95
commit bf5ab32fe9
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ function ghostLocals(req, res, next) {
_.extend(res.locals, {
currentUser: {
name: currentUser.attributes.name,
profile: currentUser.attributes.image
image: currentUser.attributes.image
}
});
next();

View file

@ -9,7 +9,7 @@
<li id="usermenu" class="subnav">
<a href="#" data-toggle="ul" class="dropdown">
<img class="avatar" src="{{#if currentUser.profile}}{{currentUser.profile}}{{else}}/shared/img/user-image.png{{/if}}" alt="Avatar" />
<img class="avatar" src="{{#if currentUser.image}}{{currentUser.image}}{{else}}/shared/img/user-image.png{{/if}}" alt="Avatar" />
<span class="name">{{#if currentUser.name}}{{currentUser.name}}{{else}}Ghost{{/if}}</span>
</a>
<ul class="overlay">