1
0
Fork 0

truncate displayed collection names in web UI at 64 chars (#10362)

This commit is contained in:
Jan 2019-11-05 20:41:32 +01:00 committed by GitHub
parent b58cd6e91b
commit 2309633a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View File

@ -497,7 +497,7 @@
};
window.modalView.show(
'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,
tableContent
);

View File

@ -384,7 +384,7 @@
breadcrumb: function () {
var name = window.location.hash.split('/');
$('#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>' +
this.type.charAt(0).toUpperCase() + this.type.slice(1) + ': ' + name[2]
);

View File

@ -1178,7 +1178,7 @@
if (window.App.naviView && $('#subNavigationBar .breadcrumb').html() !== undefined) {
$('#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');
} else {

View File

@ -103,7 +103,7 @@
breadcrumb: function () {
$('#subNavigationBar .breadcrumb').html(
'Collection: ' + this.collectionName
'Collection: ' + (this.collectionName.length > 64 ? this.collectionName.substr(0, 64) + "..." : this.collectionName)
);
},

View File

@ -31,7 +31,7 @@
breadcrumb: function () {
$('#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(
'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,
tableContent, null, null,
null, null,

View File

@ -26,7 +26,7 @@
breadcrumb: function () {
$('#subNavigationBar .breadcrumb').html(
'Collection: ' + this.collectionName
'Collection: ' + (this.collectionName.length > 64 ? this.collectionName.substr(0, 64) + "..." : this.collectionName)
);
},

View File

@ -236,7 +236,7 @@ $iconsize: 50px;
margin-left: 5px;
margin-right: 5px;
overflow: hidden !important;
padding: 4px 8px;
padding: 4px 55px 4px 8px;
text-overflow: ellipsis !important;
white-space: nowrap !important;