summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-04-25 10:12:10 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-04-25 20:47:18 +0200
commit2ccaae89681751c3c7d99caa1abd79daa910d35e (patch)
tree7fba042cc7b9deb8b3ba80d9bc7910a3350c9f57 /core
parent4ae53408147eaa60169e77bff55ef815a7b7761d (diff)
downloadnextcloud-server-2ccaae89681751c3c7d99caa1abd79daa910d35e.tar.gz
nextcloud-server-2ccaae89681751c3c7d99caa1abd79daa910d35e.zip
Fix emptycontent HTML and wording
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core')
-rw-r--r--core/js/contactsmenu.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/js/contactsmenu.js b/core/js/contactsmenu.js
index 93d5c437197..15c48887d20 100644
--- a/core/js/contactsmenu.js
+++ b/core/js/contactsmenu.js
@@ -32,7 +32,7 @@
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}}'
@@ -40,12 +40,13 @@
+ '{{#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}}'
@@ -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.