diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-24 16:50:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-24 23:06:55 +0100 |
commit | 4243a29831d4a1e18cbc68a74a3df61477347d6c (patch) | |
tree | e29e92eeb29fb0e60f90487c2a26ed38d9f8a7bf /templates/contact.html | |
parent | 4de2f8e0554f831bacca89e3948b126fbc167635 (diff) |
Show contact photo in contact list
Diffstat (limited to 'templates/contact.html')
-rw-r--r-- | templates/contact.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/contact.html b/templates/contact.html index ca986a7e..e170fb46 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,5 +1,6 @@ <a class="app-content-list-item-link" ng-click="ctrl.openContact()"> -<div class="app-content-list-item-icon contact__icon" ng-style="{'background-color': (ctrl.contact.uid() | contactColor) }">{{ ctrl.contact.fullName() | firstCharacter }}</div> +<img class="app-content-list-item-icon contact__icon" ng-show="ctrl.contact.photo()!==undefined" data-ng-src="data:image/png;base64,{{ctrl.contact.photo()}}" /> +<div class="app-content-list-item-icon contact__icon" ng-show="ctrl.contact.photo()===undefined" ng-style="{'background-color': (ctrl.contact.uid() | contactColor) }">{{ ctrl.contact.fullName() | firstCharacter }}</div> <div class="app-content-list-item-star icon-star" data-starred="false"></div> |