summaryrefslogtreecommitdiffstats
path: root/modules-available/dnbd3/templates/page-proxy-clients.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/dnbd3/templates/page-proxy-clients.html')
-rw-r--r--modules-available/dnbd3/templates/page-proxy-clients.html27
1 files changed, 22 insertions, 5 deletions
diff --git a/modules-available/dnbd3/templates/page-proxy-clients.html b/modules-available/dnbd3/templates/page-proxy-clients.html
index daf741e2..6e2cece7 100644
--- a/modules-available/dnbd3/templates/page-proxy-clients.html
+++ b/modules-available/dnbd3/templates/page-proxy-clients.html
@@ -32,20 +32,26 @@
<div class="col-md-6">
<h2>{{lang_clientList}}</h2>
- <table class="table table-condensed">
+ <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>
+ <span class="glyphicon glyphicon-hdd" title="{{lang_isProxy}}"></span>
{{/isServer}}
- {{address}}
+ <a href="?do=statistics&amp;show=list&amp;filter[clientip]=1&amp;op[clientip]=%3D&amp;arg[clientip]={{ip}}">{{address}}</a>
</td>
- <td data-sort="int" data-sort-value="{{bytesSent}}" class="text-right">
+ <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>
@@ -53,4 +59,15 @@
</table>
</div>
</div>
-</div> \ No newline at end of file
+</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> \ No newline at end of file