summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-07-16 14:54:26 +0200
committerJulius Haertl <jus@bitgrid.net>2016-07-25 21:14:02 +0200
commit35160f520fdd04bfbd9553dc7b33992034288586 (patch)
treef3b6eadc60ba917b4308544830aba0487c6e1653 /templates
parent1e61b1bba4551ba33d5ea3f44ad0365b779ecd10 (diff)
Add number of displayed contacts to the bottom of the contact list
Diffstat (limited to 'templates')
-rw-r--r--templates/contactList.html5
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>