mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
Update hlist.html
hostlist 列表中,客户端在线时点击在线状态可以直接进行访问
This commit is contained in:
parent
f6e62c1241
commit
7c9f777eac
@ -134,8 +134,9 @@
|
||||
halign: 'center',
|
||||
visible: true,//false表示不显示
|
||||
formatter: function (value, row, index) {
|
||||
hosturl = ((row.Scheme == 'http' ) ? 'http://' : 'https://') + row.Host + row.Location
|
||||
if (row.Client.IsConnect) {
|
||||
return '<span class="badge badge-primary" langtag="word-online"></span>'
|
||||
return '<a href="' + hosturl + '" target="_blank"><span class="badge badge-primary" langtag="word-online"></span></a>'
|
||||
} else {
|
||||
return '<span class="badge badge-badge" langtag="word-offline"></span>'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user