fix: sub nav avatar url

pull/102/head
ppoffice 2016-02-18 12:03:53 +08:00
parent 9c2ebada8e
commit 403fb9dd09
1 changed files with 2 additions and 1 deletions

View File

@ -11,10 +11,11 @@
<% } %> <% } %>
</nav> </nav>
<% if(theme.customize.profile && theme.customize.profile.enabled) { %> <% if(theme.customize.profile && theme.customize.profile.enabled) { %>
<% var profile = theme.customize.profile; %>
<nav id="sub-nav"> <nav id="sub-nav">
<div class="profile" id="profile-nav"> <div class="profile" id="profile-nav">
<a id="profile-anchor" href="javascript:;"> <a id="profile-anchor" href="javascript:;">
<img class="avatar" src="<%= ( theme.gravatar ? gravatar(config.email) : url_for(config.avatar)) %>" /> <img class="avatar" src="<%= ( profile.gravatar ? gravatar(profile.gravatar) : url_for(profile.avatar)) %>" />
<i class="fa fa-caret-down"></i> <i class="fa fa-caret-down"></i>
</a> </a>
</div> </div>