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:
parent
f45d362b95
commit
bf5ab32fe9
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue