mirror of https://gitee.com/bigwinds/arangodb
truncate displayed collection names in web UI at 64 chars (#10362)
This commit is contained in:
parent
b58cd6e91b
commit
2309633a44
|
@ -497,7 +497,7 @@
|
||||||
};
|
};
|
||||||
window.modalView.show(
|
window.modalView.show(
|
||||||
'modalCollectionInfo.ejs',
|
'modalCollectionInfo.ejs',
|
||||||
'Collection: ' + this.model.get('name'),
|
'Collection: ' + (this.model.get('name').length > 64 ? this.model.get('name').substr(0, 64) + "..." : this.model.get('name')),
|
||||||
buttons,
|
buttons,
|
||||||
tableContent
|
tableContent
|
||||||
);
|
);
|
||||||
|
|
|
@ -384,7 +384,7 @@
|
||||||
breadcrumb: function () {
|
breadcrumb: function () {
|
||||||
var name = window.location.hash.split('/');
|
var name = window.location.hash.split('/');
|
||||||
$('#subNavigationBar .breadcrumb').html(
|
$('#subNavigationBar .breadcrumb').html(
|
||||||
'<a href="#collection/' + name[1] + '/documents/1">Collection: ' + name[1] + '</a>' +
|
'<a href="#collection/' + name[1] + '/documents/1">Collection: ' + (name[1].length > 64 ? name[1].substr(0, 64) + "..." : name[1]) + '</a>' +
|
||||||
'<i class="fa fa-chevron-right"></i>' +
|
'<i class="fa fa-chevron-right"></i>' +
|
||||||
this.type.charAt(0).toUpperCase() + this.type.slice(1) + ': ' + name[2]
|
this.type.charAt(0).toUpperCase() + this.type.slice(1) + ': ' + name[2]
|
||||||
);
|
);
|
||||||
|
|
|
@ -1178,7 +1178,7 @@
|
||||||
|
|
||||||
if (window.App.naviView && $('#subNavigationBar .breadcrumb').html() !== undefined) {
|
if (window.App.naviView && $('#subNavigationBar .breadcrumb').html() !== undefined) {
|
||||||
$('#subNavigationBar .breadcrumb').html(
|
$('#subNavigationBar .breadcrumb').html(
|
||||||
'Collection: ' + arangoHelper.escapeHtml(this.collectionName)
|
'Collection: ' + arangoHelper.escapeHtml(this.collectionName.length > 64 ? this.collectionName.substr(0, 64) + "..." : this.collectionName)
|
||||||
);
|
);
|
||||||
arangoHelper.buildCollectionSubNav(this.collectionName, 'Content');
|
arangoHelper.buildCollectionSubNav(this.collectionName, 'Content');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
breadcrumb: function () {
|
breadcrumb: function () {
|
||||||
$('#subNavigationBar .breadcrumb').html(
|
$('#subNavigationBar .breadcrumb').html(
|
||||||
'Collection: ' + this.collectionName
|
'Collection: ' + (this.collectionName.length > 64 ? this.collectionName.substr(0, 64) + "..." : this.collectionName)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
breadcrumb: function () {
|
breadcrumb: function () {
|
||||||
$('#subNavigationBar .breadcrumb').html(
|
$('#subNavigationBar .breadcrumb').html(
|
||||||
'Collection: ' + this.collectionName
|
'Collection: ' + (this.collectionName.length > 64 ? this.collectionName.substr(0, 64) + "..." : this.collectionName)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
};
|
};
|
||||||
window.modalView.show(
|
window.modalView.show(
|
||||||
'modalCollectionInfo.ejs',
|
'modalCollectionInfo.ejs',
|
||||||
'Collection: ' + this.model.get('name'),
|
'Collection: ' + (this.model.get('name').length > 64 ? this.model.get('name').substr(0, 64) + "..." : this.model.get('name')),
|
||||||
buttons,
|
buttons,
|
||||||
tableContent, null, null,
|
tableContent, null, null,
|
||||||
null, null,
|
null, null,
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
breadcrumb: function () {
|
breadcrumb: function () {
|
||||||
$('#subNavigationBar .breadcrumb').html(
|
$('#subNavigationBar .breadcrumb').html(
|
||||||
'Collection: ' + this.collectionName
|
'Collection: ' + (this.collectionName.length > 64 ? this.collectionName.substr(0, 64) + "..." : this.collectionName)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@ $iconsize: 50px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
padding: 4px 8px;
|
padding: 4px 55px 4px 8px;
|
||||||
text-overflow: ellipsis !important;
|
text-overflow: ellipsis !important;
|
||||||
white-space: nowrap !important;
|
white-space: nowrap !important;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue