status web: In client list, only display local port number, not local address
This commit is contained in:
parent
8e196aee63
commit
7383a7091b
|
|
@ -93,7 +93,13 @@ var key_tooltips = {
|
|||
|
||||
|
||||
|
||||
/* ******** NEW angular.js ********* */
|
||||
/* filters */
|
||||
|
||||
/* return only port of an addr:port string */
|
||||
function onlyport(s)
|
||||
{
|
||||
return s.substr(s.lastIndexOf(':') + 1);
|
||||
}
|
||||
|
||||
function ratestr(rate)
|
||||
{
|
||||
|
|
@ -359,6 +365,7 @@ var app = angular.module('aprsc', [ 'pascalprecht.translate', 'graph', 'ngDialog
|
|||
app.filter('duration', function() { return dur_str; });
|
||||
app.filter('datetime', function() { return timestr; });
|
||||
app.filter('ratestr', function() { return ratestr; });
|
||||
app.filter('onlyport', function() { return onlyport; });
|
||||
|
||||
app.controller('aprscc', [ '$scope', '$http', 'graphs', 'ngDialog', '$sce', function($scope, $http, graphs, ngDialog, $sce) {
|
||||
console.log('aprsc init');
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@
|
|||
ng-click="changeSorting(clients_sort, k)">{{ 'TH_' + k | translate }} <span ng-class="sortIndicator(clients_sort, k)"></span></th>
|
||||
</tr>
|
||||
<tr ng-repeat="c in status.clients | orderBy : clients_sort.column : clients_sort.descending">
|
||||
<td>{{ c.addr_loc }}</td>
|
||||
<td>{{ c.addr_loc | onlyport }}</td>
|
||||
<td class='username'><a href="http://aprs.fi/?call={{ c.username }}" target="_blank">{{ c.username }}</a></td>
|
||||
<td><a ng-show="linkable(c)" ng-href="{{ server_status_href(c) }}">{{ c.addr_rem }}</a>
|
||||
<span ng-show="!linkable(c)">{{ c.addr_rem }}</span>
|
||||
|
|
|
|||
Loading…
Reference in New Issue