luci-app-dockerman: sync with upstream source
This commit is contained in:
parent
c7a4009f17
commit
ee45165a93
@ -50,7 +50,7 @@ function get_containers()
|
||||
data[index]["_ports"] = nil
|
||||
for _,v2 in ipairs(v.Ports) do
|
||||
data[index]["_ports"] = (data[index]["_ports"] and (data[index]["_ports"] .. ", ") or "")
|
||||
.. ((v2.PublicPort and v2.Type and v2.Type == "tcp") and ('<a href="javascript:void(0);" onclick="window.open(window.location.origin + \':\' + '.. v2.PublicPort ..', \'_blank\');">') or "")
|
||||
.. ((v2.PublicPort and v2.Type and v2.Type == "tcp") and ('<a href="javascript:void(0);" onclick="window.open((window.location.origin.match(/^(.+):\\d+$/) && window.location.origin.match(/^(.+):\\d+$/)[1] || window.location.origin) + \':\' + '.. v2.PublicPort ..', \'_blank\');">') or "")
|
||||
.. (v2.PublicPort and (v2.PublicPort .. ":") or "") .. (v2.PrivatePort and (v2.PrivatePort .."/") or "") .. (v2.Type and v2.Type or "")
|
||||
.. ((v2.PublicPort and v2.Type and v2.Type == "tcp")and "</a>" or "")
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user