This commit is contained in:
Van 2014-12-14 16:40:45 +08:00
parent efcbeb5b1a
commit b791847ca0
4 changed files with 11 additions and 2 deletions

View File

@ -111,3 +111,8 @@
#dialogPreference .preference { #dialogPreference .preference {
margin-bottom: 10px; margin-bottom: 10px;
} }
#dialogPreference img.gravatar {
width: 48px;
height: 48px;
}

View File

@ -282,6 +282,8 @@
.menu img.gravatar { .menu img.gravatar {
float: left; float: left;
margin: 2px 8px; margin: 2px 8px;
height: 17px;
width: 17px;
} }
#buildRun { #buildRun {

View File

@ -347,6 +347,7 @@
<div class="fn-right"> <div class="fn-right">
<img class="gravatar" <img class="gravatar"
onerror="this.src='http://symphony.b3log.org/images/user-thumbnail.png'"
src="http://secure.gravatar.com/avatar/{{.user.Gravatar}}?s=17&d=http://symphony.b3log.org/images/user-thumbnail.png" src="http://secure.gravatar.com/avatar/{{.user.Gravatar}}?s=17&d=http://symphony.b3log.org/images/user-thumbnail.png"
title="{{.user.Name}}"/> title="{{.user.Name}}"/>
<span class="font-ico ico-share"></span> &nbsp; <span class="font-ico ico-share"></span> &nbsp;

View File

@ -91,8 +91,9 @@
<input data-value="{{.user.Password}}" value="{{.user.Password}}" name="password" type="password"/> <input data-value="{{.user.Password}}" value="{{.user.Password}}" name="password" type="password"/>
</label> </label>
<label class="fn-clear"> <label class="fn-clear">
<img src="http://secure.gravatar.com/avatar/{{.user.Gravatar}}?s=48&d=http://symphony.b3log.org/images/user-thumbnail.png" <img onerror="this.src='http://symphony.b3log.org/images/user-thumbnail.png'"
title="{{.user.Name}}"/> src="http://secure.gravatar.com/avatar/{{.user.Gravatar}}?s=48&d=http://symphony.b3log.org/images/user-thumbnail.png"
title="{{.user.Name}}" class='gravatar'/>
<a href="http://gravatar.com/" target="_blank">{{.i18n.change_avatar}} Gravatar.com</a> <a href="http://gravatar.com/" target="_blank">{{.i18n.change_avatar}} Gravatar.com</a>
</label> </label>
</div> </div>