diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-15 14:21:46 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-15 14:21:46 +0200 |
commit | 5fe41356b5bb3bd1dada821619e71f024e14d4fb (patch) | |
tree | 968cee052754559472c10da3c1ca690920e02eb0 /templates | |
parent | 246dc972c470a62eaaa9ffababbbe39e1bbd9f25 (diff) |
Fix sorting as well as placeholder generation
Diffstat (limited to 'templates')
-rw-r--r-- | templates/contact.html | 2 | ||||
-rw-r--r-- | templates/contactList.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/contact.html b/templates/contact.html index d97d6963..7052615a 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -1,6 +1,6 @@ <a class="app-content-list-item-link" ng-click="ctrl.openContact()"> <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-icon contact__icon" ng-show="ctrl.contact.photo()===undefined" ng-style="{'background-color': (ctrl.contact.uid() | contactColor) }">{{ ctrl.contact.displayName() | firstCharacter }}</div> <div class="app-content-list-item-star icon-star" data-starred="false"></div> <div class="app-content-list-item-line-one" ng-class="{'no-line-two':!ctrl.contact.email()}">{{ ctrl.contact.displayName() | newContact }}</div> <div class="app-content-list-item-line-two">{{ctrl.contact.email()}}</div> diff --git a/templates/contactList.html b/templates/contactList.html index dd865a46..f3b0150f 100644 --- a/templates/contactList.html +++ b/templates/contactList.html @@ -2,7 +2,7 @@ <button ng-show="!ctrl.loading && !ctrl.invalid" class="app-content-list-button" id="new-contact-button" type="button" name="button" ng-click="ctrl.createContact()">{{ctrl.t.addContact}}</button> <div class="app-content-list-item" - ng-repeat="contact in ctrl.contactList = (ctrl.contacts | contactGroupFilter:ctrl.routeParams.gid | orderBy:'fullName()' | filter:query) track by contact.uid()" + ng-repeat="contact in ctrl.contactList = (ctrl.contacts | contactGroupFilter:ctrl.routeParams.gid | orderBy:'displayName()' | filter:query) track by contact.uid()" contact data="contact" ng-click="setSelected(contact.uid())" ng-class="{active: contact.uid() === ctrl.getSelectedId()}"> |