Fix emptycontent HTML and wording

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2017-04-25 10:12:10 +02:00 committed by Christoph Wurst
parent 4ae5340814
commit 2ccaae8968
1 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,7 @@
var CONTACTS_LIST_TEMPLATE = '' var CONTACTS_LIST_TEMPLATE = ''
+ '{{#unless contacts.length}}' + '{{#unless contacts.length}}'
+ '<div class="emptycontent">' + '<div class="emptycontent">'
+ ' <a class="icon-search"></a>' + ' <div class="icon-search"></div>'
+ ' <h2>' + t('core', 'No contacts found') + '</h2>' + ' <h2>' + t('core', 'No contacts found') + '</h2>'
+ '</div>' + '</div>'
+ '{{/unless}}' + '{{/unless}}'
@ -40,12 +40,13 @@
+ '{{#if contactsAppEnabled}}<div class="footer"><a href="{{contactsAppURL}}">' + t('core', 'Show all contacts …') + '</a></div>{{/if}}'; + '{{#if contactsAppEnabled}}<div class="footer"><a href="{{contactsAppURL}}">' + t('core', 'Show all contacts …') + '</a></div>{{/if}}';
var LOADING_TEMPLATE = '' var LOADING_TEMPLATE = ''
+ '<div class="emptycontent">' + '<div class="emptycontent">'
+ ' <a class="icon-loading"></a>' + ' <div class="icon-loading"></div>'
+ ' <h2>{{loadingText}}</h2>' + ' <h2>{{loadingText}}</h2>'
+ '</div>'; + '</div>';
var ERROR_TEMPLATE = '' var ERROR_TEMPLATE = ''
+ '<div class="emptycontent">' + '<div class="emptycontent">'
+ ' <h2>' + t('core', 'Could not load your contacts.') + '</h2>' + ' <div class="icon-search"></div>'
+ ' <h2>' + t('core', 'There was an error loading your contacts') + '</h2>'
+ '</div>'; + '</div>';
var CONTACT_TEMPLATE = '' var CONTACT_TEMPLATE = ''
+ '{{#if contact.avatar}}' + '{{#if contact.avatar}}'
@ -508,7 +509,7 @@
self._view.showContacts(data, searchTerm); self._view.showContacts(data, searchTerm);
}, function(e) { }, function(e) {
self._view.showError(); self._view.showError();
console.error('could not load contacts', e); console.error('There was an error loading your contacts', e);
}).then(function() { }).then(function() {
// Delete promise, so that contacts are fetched again when the // Delete promise, so that contacts are fetched again when the
// menu is opened the next time. // menu is opened the next time.