|
@@ -1,6 +1,7 @@
|
|
|
<table id="star_list_table" class="display" width="100%">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
+ <th></th>
|
|
|
<th>{{ 'list.label_device'|trans({}, 'StatsBundle') }}</th>
|
|
|
<th>{{ 'list.label_in'|trans({}, 'StatsBundle') }}</th>
|
|
|
<th>{{ 'list.label_out'|trans({}, 'StatsBundle') }}</th>
|
|
@@ -54,7 +55,11 @@ function reloadStarList() {
|
|
|
deviceId = element.device + "~" + fatherDevice + "~" + server;
|
|
|
url = urlToDevice.replace("ID_DEVICE", deviceId);
|
|
|
link = "<a target='_blank' href='"+url+"'>"+element.device.toUpperCase()+"</a>";
|
|
|
- result.push({device: link, i: element.i, o: element.o, t: element.t, u: usage, ut: usageTotal, diff: diffToLimit});
|
|
|
+
|
|
|
+
|
|
|
+ urlDownDevice = "{{url('star_get_xls')}}?server="+server+"&fatherDevice="+fatherDevice+"&fatherDeviceType=1&device="+element.device+"&from="+parameters.from+"&to="+parameters.to;
|
|
|
+ linkDownDevice = "<a title='{{ 'picker_download_star'|trans({}, 'StatsBundle') }}' style='color:#666666' href='"+urlDownDevice+"'><i class='fa fa-cloud-download'></i></a>";
|
|
|
+ result.push({down: linkDownDevice, device: link, i: element.i, o: element.o, t: element.t, u: usage, ut: usageTotal, diff: diffToLimit});
|
|
|
|
|
|
});
|
|
|
return result;
|
|
@@ -62,7 +67,7 @@ function reloadStarList() {
|
|
|
},
|
|
|
destroy: true,
|
|
|
order:[],paging:true,lengthChange:false,searching:true,ordering:true,info:true,autoWidth:false,lengthMenu: [[50, -1],[50, "All"]],
|
|
|
- columns : [{"data":"device"},{"data":"i"},{"data":"o"},{"data":"t"},{"data":"diff"},{"data":"u"},{"data":"ut"}],
|
|
|
+ columns : [{"data":"down"},{"data":"device"},{"data":"i"},{"data":"o"},{"data":"t"},{"data":"diff"},{"data":"u"},{"data":"ut"}],
|
|
|
fnRowCallback: function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
|
|
|
if(aData.u >= 70 && aData.u < 80) {
|
|
|
$('td', nRow).css('color', '#da7a3b' );
|