blob: 6e2cece72edfa81920f08cad21ee9c60a33b8e45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<div role="tabpanel" class="tab-pane active" id="tab-clients">
<div class="row">
<div class="col-md-6">
{{#loclist.0}}
<h2>{{lang_clientsByLocation}}</h2>
<table class="table table-condensed">
<tr>
<th>{{lang_location}}</th>
<th class="text-right">{{lang_count}}</th>
<th class="text-right">{{lang_recursiveCount}}</th>
</tr>
{{#loclist}}
<tr>
<td>
{{#depth}}
<div style="display:inline-block;width:{{depth}}em"></div>
{{/depth}}
{{locationname}}
</td>
<td class="text-right">
{{clientCount}}
</td>
<td class="text-right">
{{recCount}}
</td>
</tr>
{{/loclist}}
</table>
{{/loclist.0}}
</div>
<div class="col-md-6">
<h2>{{lang_clientList}}</h2>
<table id="client-table" class="table table-condensed">
<tr>
<th>{{lang_client}}</th>
<th></th>
<th class="text-right">{{lang_bytesSent}}</th>
</tr>
{{#clients}}
<tr>
<td>
{{#isServer}}
<span class="glyphicon glyphicon-hdd" title="{{lang_isProxy}}"></span>
{{/isServer}}
<a href="?do=statistics&show=list&filter[clientip]=1&op[clientip]=%3D&arg[clientip]={{ip}}">{{address}}</a>
</td>
<td class="slx-smallcol">
<a href="#tab-images" class="show-image" data-image-id="{{imageId}}">
<span class="glyphicon glyphicon-folder-open"></span>
</a>
</td>
<td data-sort="int" data-sort-value="{{bytesSent}}" class="text-right text-nowrap slx-smallcol">
{{bytesSent_s}}
</td>
</tr>
{{/clients}}
</table>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
$('.show-image').click(function () {
$('#client-table tr').removeClass('warning');
$('#img-table tr').removeClass('warning');
var x = $('#img-table a[data-image-id=' + $(this).data('image-id') + ']').closest('tr').addClass('warning')[0];
setTimeout(function() { if (x.scrollIntoViewIfNeeded) x.scrollIntoViewIfNeeded(true); else x.scrollIntoView({block: "center"}) }, 10);
});
});
</script>
|