Update hlist.html

hostlist 列表中,客户端在线时点击在线状态可以直接进行访问
This commit is contained in:
hzgjq
2020-03-02 18:26:45 +08:00
committed by GitHub
parent f6e62c1241
commit 7c9f777eac

View File

@@ -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>'
}