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