Use gh-path for nav bar dfallback avatar

Closes #4344

- Uses the `{{gh-path}}` helper to make the fellback avatar src work when Ghost is in a sub-directory
This commit is contained in:
Paul Adam Davis 2014-10-27 16:15:19 +00:00
parent edef2ec941
commit 17d662bff9

View File

@ -34,7 +34,7 @@
{{#if session.user.image}}
<div class="image"><img {{bind-attr src="session.user.image"}} alt="{{session.user.name}}'s profile picture" /></div>
{{else}}
<div class="image"><img src="/shared/img/user-image.png" alt="Profile picture" /></div>
<div class="image"><img src="{{gh-path "blog" "shared/img/user-image.png"}}" alt="Profile picture" /></div>
{{/if}}
<div class="name">
{{session.user.name}} <i class="icon-chevron-down"></i>