diff options
Diffstat (limited to 'templates/host.html')
-rw-r--r-- | templates/host.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/host.html b/templates/host.html index 074867d..df34ab2 100644 --- a/templates/host.html +++ b/templates/host.html @@ -43,10 +43,13 @@ </div> <div class="tab-pane" id="ports"> - <table class="table table-stripped table-hover"> + <table id="portstable" class="table table-striped table-hover tablesorter"> <thead> <tr> - <th>Port</th><th>IP</th><th>Process</th><th>Protocol</th> + <th>Port</th> + <th>IP</th> + <th>Process</th> + <th>Protocol</th> </tr> </thead> <tbody> @@ -64,4 +67,13 @@ </table> </div> </div> + +<script> +<!-- + $(function() { + // force column "IP" to text (ips sometimes are parsed as digits) + $("table#portstable").tablesorter({ headers: { 1: { sorter:'text' } } }); + }); +//--> +</script> {% endblock %} |