1
0
Fork 0

Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel

This commit is contained in:
Jan Steemann 2013-02-18 15:18:14 +01:00
commit 20bb1f086b
6 changed files with 14 additions and 3 deletions

View File

@ -11,7 +11,7 @@
}
.tab-content {
min-height: 290px;
min-height: 390px;
}
.dataTables_info {
@ -79,7 +79,7 @@
background-color: rgba(255, 255, 255, 0.8) !important;
}
#logTableID td {
#logTableID td, #infoTableID td, #debugTableID td, #critTableID td, #warnTableID td {
padding-top: 8px;
padding-bottom: 8px;
}

BIN
frontend/img/saveIcon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
frontend/img/sourceView.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
frontend/img/tableView.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -20,6 +20,9 @@ window.arangoLogs = Backbone.Collection.extend({
clearLocalStorage: function () {
window.arangoLogsStore.reset();
},
returnElements: function () {
console.log(this.models.length);
},
fillLocalStorage: function (table, offset, size) {
var self = this;
this.clearLocalStorage();

View File

@ -128,11 +128,19 @@ var logsView = Backbone.View.extend({
},
drawTable: function () {
var self = this;
$.each(window.arangoLogsStore.models, function(key, value) {
var convertedLog = self.convertLogStatus(value.attributes.level);
$('#'+self.table).dataTable().fnAddData([convertedLog, value.attributes.text]);
});
$('#logPages').html('Showing Page: '+this.page+' of '+this.totalPages);
try {
this.totalAmount = this.collection.models[0].attributes.totalAmount;
this.totalPages = Math.ceil(this.totalAmount / this.size);
$('#logPages').html('Showing Page: '+this.page+' of '+this.totalPages);
}
catch (e) {
$('#logPages').html('No logfiles available');
}
},
clearTable: function () {
$('#'+this.table).dataTable().fnClearTable();