add icon if no versions are available
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
bc597b1843
commit
edb116ae93
2 changed files with 10 additions and 2 deletions
|
@ -68,3 +68,7 @@
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: -10px;
|
margin-right: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.versionsTabView .emptycontent {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
|
@ -38,7 +38,11 @@
|
||||||
var TEMPLATE =
|
var TEMPLATE =
|
||||||
'<ul class="versions"></ul>' +
|
'<ul class="versions"></ul>' +
|
||||||
'<div class="clear-float"></div>' +
|
'<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}}"' +
|
'<input type="button" class="showMoreVersions hidden" value="{{moreVersionsLabel}}"' +
|
||||||
' name="show-more-versions" id="show-more-versions" />' +
|
' name="show-more-versions" id="show-more-versions" />' +
|
||||||
'<div class="loading hidden" style="height: 50px"></div>';
|
'<div class="loading hidden" style="height: 50px"></div>';
|
||||||
|
@ -225,7 +229,7 @@
|
||||||
*/
|
*/
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.html(this.template({
|
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...')
|
moreVersionsLabel: t('files_versions', 'More versions...')
|
||||||
}));
|
}));
|
||||||
this.$el.find('.has-tooltip').tooltip();
|
this.$el.find('.has-tooltip').tooltip();
|
||||||
|
|
Loading…
Reference in a new issue