summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-12-02 18:03:50 +0100
committerGitHub <noreply@github.com>2016-12-02 18:03:50 +0100
commitdf12824a5be43bdc5f9f9a752fb73f60d6c98e6a (patch)
tree2dbf41ecb0ac3e4b3c92b142e9edab1df72e33d8
parentbd2a8e768e944b43656a9c4d1e5ae89e901e169c (diff)
parentedb116ae93afb486883064181f943ba116439c8a (diff)
downloadnextcloud-server-df12824a5be43bdc5f9f9a752fb73f60d6c98e6a.tar.gz
nextcloud-server-df12824a5be43bdc5f9f9a752fb73f60d6c98e6a.zip
Merge pull request #2479 from nextcloud/icon-for-empty-versions
add icon if no versions are available
-rw-r--r--apps/files_versions/css/versions.css4
-rw-r--r--apps/files_versions/js/versionstabview.js8
2 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_versions/css/versions.css b/apps/files_versions/css/versions.css
index cd63a90ab51..e749854a942 100644
--- a/apps/files_versions/css/versions.css
+++ b/apps/files_versions/css/versions.css
@@ -68,3 +68,7 @@
float: right;
margin-right: -10px;
}
+
+.versionsTabView .emptycontent {
+ margin-top: 10px;
+}
diff --git a/apps/files_versions/js/versionstabview.js b/apps/files_versions/js/versionstabview.js
index a91366fd40a..e5ca115ecfa 100644
--- a/apps/files_versions/js/versionstabview.js
+++ b/apps/files_versions/js/versionstabview.js
@@ -38,7 +38,11 @@
var TEMPLATE =
'<ul class="versions"></ul>' +
'<div class="clear-float"></div>' +
- '<div class="empty hidden">{{emptyResultLabel}}</div>' +
+ '<div class="empty hidden">' +
+ '<div class="emptycontent">' +
+ '<div class="icon-history"></div>' +
+ '<p>{{emptyResultLabel}}</p>' +
+ '</div></div>' +
'<input type="button" class="showMoreVersions hidden" value="{{moreVersionsLabel}}"' +
' name="show-more-versions" id="show-more-versions" />' +
'<div class="loading hidden" style="height: 50px"></div>';
@@ -225,7 +229,7 @@
*/
render: function() {
this.$el.html(this.template({
- emptyResultLabel: t('files_versions', 'No other versions available'),
+ emptyResultLabel: t('files_versions', 'No versions available'),
moreVersionsLabel: t('files_versions', 'More versions...')
}));
this.$el.find('.has-tooltip').tooltip();