diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-07-16 14:54:26 +0200 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-07-25 21:14:02 +0200 |
commit | 35160f520fdd04bfbd9553dc7b33992034288586 (patch) | |
tree | f3b6eadc60ba917b4308544830aba0487c6e1653 /templates | |
parent | 1e61b1bba4551ba33d5ea3f44ad0365b779ecd10 (diff) |
Add number of displayed contacts to the bottom of the contact list
Diffstat (limited to 'templates')
-rw-r--r-- | templates/contactList.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/contactList.html b/templates/contactList.html index 05b30408..fc91f156 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 | localeOrderBy:'displayName' | filter:query) track by contact.uid()" + ng-repeat="contact in ctrl.contactList = (ctrl.contacts | contactGroupFilter:ctrl.routeParams.gid | localeOrderBy:'displayName' | filter:query) as filtered track by contact.uid()" contact data="contact" ng-click="setSelected(contact.uid())" ng-class="{active: contact.uid() === ctrl.getSelectedId()}"> @@ -13,4 +13,7 @@ <h2>{{ctrl.t.emptySearch}}</h2> </div> </div> + <div ng-if="filtered.length>0" class="contacts-list-count"> + {{ getCountString(filtered) }} + </div> </div> |