diff --git a/v2realbot/static/index.html b/v2realbot/static/index.html index f806e8d..4812d5a 100644 --- a/v2realbot/static/index.html +++ b/v2realbot/static/index.html @@ -57,7 +57,7 @@ - + @@ -866,7 +866,7 @@ - + diff --git a/v2realbot/static/js/tables/archivetable/init.js b/v2realbot/static/js/tables/archivetable/init.js index b54d408..8ae9ca3 100644 --- a/v2realbot/static/js/tables/archivetable/init.js +++ b/v2realbot/static/js/tables/archivetable/init.js @@ -256,6 +256,7 @@ function initialize_archiveRecords() { var profit = ''; var started = null; var stratinId = null; + var symbol = null; // // Process each item only once // archiveRecords.rows({ search: 'applied' }).every(function (rowIdx, tableLoop, rowLoop) { @@ -290,7 +291,8 @@ function initialize_archiveRecords() { period = firstRowData.note ? firstRowData.note.substring(0, 14) : ''; started = firstRowData.started stratinId = firstRowData.strat_id - var newBatchHeader = {batch_id:group, profit:profit, itemCount:itemCount, period:period, started:started, stratinId:stratinId} + symbol = firstRowData.symbol + var newBatchHeader = {batch_id:group, profit:profit, itemCount:itemCount, period:period, started:started, stratinId:stratinId, symbol:symbol}; batchHeaders.push(newBatchHeader) } //uz je v poli, ale mame novejsi (pribyl v ramci backtestu napr.) - updatujeme @@ -300,6 +302,7 @@ function initialize_archiveRecords() { period = firstRowData.note ? firstRowData.note.substring(0, 14) : ''; started = firstRowData.started stratinId = firstRowData.id + symbol = firstRowData.symbol existingBatch.itemCount = itemCount; existingBatch.profit = profit; existingBatch.period = period; @@ -312,6 +315,7 @@ function initialize_archiveRecords() { period = existingBatch.period started = existingBatch.started stratinId = existingBatch.stratinId + symbol = existingBatch.symbol } } @@ -350,7 +354,7 @@ function initialize_archiveRecords() { //console.log(group, groupId, stratinId) //var groupHeaderContent = ''+(group ? 'Batch ID: ' + group: 'No Batch')+''; var groupHeaderContent = ''+ icon + (group ? 'Batch ID: ' + group: 'No Batch')+''; - groupHeaderContent += (group ? ' (' + itemCount + ')' + ' ' + period + ' Profit: ' + profit + '' : ''); + groupHeaderContent += (group ? '' + symbol + '(' + itemCount + ')' + ' ' + period + ' Profit: ' + profit + '' : ''); groupHeaderContent += group ? tools : "" return $('') .append('' + groupHeaderContent + '') diff --git a/v2realbot/static/main.css b/v2realbot/static/main.css index 7ebc088..5de17cd 100644 --- a/v2realbot/static/main.css +++ b/v2realbot/static/main.css @@ -377,6 +377,13 @@ table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sort /* font-weight: bold; */ } +.group-header .batchheader-symbol-info { + font-weight: 600; + vertical-align: super; + margin-left: 2px; + margin-right: 2px; +} + .group-header .batchheader-batch-id { color: #a1a1a1; /* Highlight period info */ font-weight: 400;