Browse Source

Hardcode buddy image resolution in template.

pull/15/head
Joachim Bauch 11 years ago
parent
commit
3a9e25811b
  1. 2
      static/js/services/buddylist.js
  2. 2
      static/partials/buddy.html

2
static/js/services/buddylist.js

@ -326,8 +326,6 @@ define(['underscore', 'modernizr', 'avltree', 'text!partials/buddy.html', 'text! @@ -326,8 +326,6 @@ define(['underscore', 'modernizr', 'avltree', 'text!partials/buddy.html', 'text!
if (url.indexOf("img:") === 0) {
url = url.substr(4);
// NOTE: buddy image size currently is hardcoded
status.buddyPictureWidth = status.buddyPictureHeight = 46;
status.buddyPicture = mediaStream.config.B + "static/img/buddy/s46/"+url;
}

2
static/partials/buddy.html

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<div class="buddy withSubline" ng-click="doDefault(user.Id)">
<div class="buddyimage"><i class="fa fa-user fa-3x"/><img ng-show="status.buddyPicture" alt="{{user.Id|displayName}}" ng-src="{{status.buddyPicture}}" width="{{status.buddyPictureWidth}}" height="{{status.buddyPictureHeight}}"/></div>
<div class="buddyimage"><i class="fa fa-user fa-3x"/><img ng-show="status.buddyPicture" alt="{{user.Id|displayName}}" ng-src="{{status.buddyPicture}}" width="46" height="46"/></div>
<div class="buddy1">{{user.Id|displayName}}</div>
<div class="buddy2">{{user.Ua}}</div>
</div>

Loading…
Cancel
Save