summaryrefslogtreecommitdiffstats
path: root/templates/contactDetails.html
diff options
context:
space:
mode:
authorThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-30 08:14:11 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-05-30 08:14:11 +0200
commitfc1f7c700832bf3f82f2a4d4b884e7086ce6c202 (patch)
tree13a7bb6fac7b5c888cd27f42729d371c69810434 /templates/contactDetails.html
parent573e65665d53b1119603c7e1716f2ae47ecf345b (diff)
parentf026e4660679799673fd42b60214f656cb812a32 (diff)
Merge pull request #380 from owncloud/avatar-upload
Avatar upload
Diffstat (limited to 'templates/contactDetails.html')
-rw-r--r--templates/contactDetails.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/contactDetails.html b/templates/contactDetails.html
index eaec8ff9..b915d4c3 100644
--- a/templates/contactDetails.html
+++ b/templates/contactDetails.html
@@ -8,8 +8,7 @@
</div>
<div ng-if="ctrl.contact!==undefined">
<header class="contactdetails__header" ng-style="{'background-color': (ctrl.contact.uid() | contactColor)}">
- <img ng-if="ctrl.photo!==undefined" class="contactdetails__logo avatar" data-ng-src="data:image/png;base64,{{ctrl.photo}}" />
- <div ng-if="ctrl.photo===undefined" class="contactdetails__logo contact__icon avatar--missing"></div>
+ <avatar data="ctrl.contact" ng-class="{'avatar--missing': ctrl.contact.photo()===undefined}"></avatar>
<div id="details-contact-infos">
<h2>
<input type="text" id="details-fullName" class="contactdetails__name" placeholder="{{ctrl.t.placeholderName}}" autocomplete="off"