Skip to content

Commit

Permalink
Fix emptycontent HTML and wording
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
  • Loading branch information
jancborchardt authored and ChristophWurst committed Apr 25, 2017
1 parent 4ae5340 commit 2ccaae8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/js/contactsmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,21 @@
var CONTACTS_LIST_TEMPLATE = ''
+ '{{#unless contacts.length}}'
+ '<div class="emptycontent">'
+ ' <a class="icon-search"></a>'
+ ' <div class="icon-search"></div>'
+ ' <h2>' + t('core', 'No contacts found') + '</h2>'
+ '</div>'
+ '{{/unless}}'
+ '<div id="contactsmenu-contacts"></div>'
+ '{{#if contactsAppEnabled}}<div class="footer"><a href="{{contactsAppURL}}">' + t('core', 'Show all contacts …') + '</a></div>{{/if}}';
var LOADING_TEMPLATE = ''
+ '<div class="emptycontent">'
+ ' <a class="icon-loading"></a>'
+ ' <div class="icon-loading"></div>'
+ ' <h2>{{loadingText}}</h2>'
+ '</div>';
var ERROR_TEMPLATE = ''
+ '<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>';
var CONTACT_TEMPLATE = ''
+ '{{#if contact.avatar}}'
Expand Down Expand Up @@ -508,7 +509,7 @@
self._view.showContacts(data, searchTerm);
}, function(e) {
self._view.showError();
console.error('could not load contacts', e);
console.error('There was an error loading your contacts', e);
}).then(function() {
// Delete promise, so that contacts are fetched again when the
// menu is opened the next time.
Expand Down

0 comments on commit 2ccaae8

Please sign in to comment.