Update hlist.html

hostlist 列表中,客户端在线时点击在线状态可以直接进行访问
pull/430/head
hzgjq 2020-03-02 18:26:45 +08:00 committed by GitHub
parent f6e62c1241
commit 7c9f777eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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