Move to Angular 1.5
This has been reasonably well tested, but further testing should be done on staging. Also optimizes avatar handling to use a constant size and not 404. Fixes #1434
This commit is contained in:
parent
dc42f22b79
commit
4aab834156
19 changed files with 91 additions and 133 deletions
|
@ -1,11 +1,13 @@
|
|||
<span class="avatar-element"
|
||||
ng-style="{'width': size, 'height': size, 'backgroundColor': data.color, 'fontSize': fontSize, 'lineHeight': lineHeight}"
|
||||
ng-style="{'width': size, 'height': size, 'backgroundColor': (showGravatar || isLoading) ? 'transparent' : data.color, 'fontSize': fontSize, 'lineHeight': lineHeight}"
|
||||
ng-class="data.kind">
|
||||
<img ng-src="//www.gravatar.com/avatar/{{ data.hash }}?d=404&size={{ size }}"
|
||||
<img ng-src="//www.gravatar.com/avatar/{{ data.hash }}?d=blank&size=512"
|
||||
ng-if="loadGravatar"
|
||||
ng-show="hasGravatar"
|
||||
ng-image-watch="imageCallback(result)">
|
||||
<span class="default-avatar" ng-if="!isLoading && !hasGravatar">
|
||||
ng-visible="showGravatar"
|
||||
ng-image-watch="imageCallback(result)"
|
||||
ng-style="{'width': imageSize + 'px', 'height': imageSize + 'px'}"
|
||||
crossorigin="anonymous">
|
||||
<span class="default-avatar" ng-if="!isLoading && !showGravatar">
|
||||
<span class="letter" ng-if="data.kind != 'team' || data.name != 'owners'">{{ data.name.charAt(0).toUpperCase() }}</span>
|
||||
<span class="letter" ng-if="data.kind == 'team' && data.name == 'owners'">Ω</span>
|
||||
</span>
|
||||
|
|
Reference in a new issue