Table style update

This commit is contained in:
Lan Tian 2020-03-27 20:25:29 +08:00
parent 1acc8f48ce
commit 90a059a5fa
No known key found for this signature in database
GPG Key ID: 27F31700E751EC22

View File

@ -256,9 +256,10 @@ func summaryTable(w http.ResponseWriter, isIPv6 bool, data string, serverName st
} else {
// Draw the row in red if the link isn't up
w.Write([]byte("<tr class=\"" + (map[string]string{
"up": "table-success",
"down": "table-danger",
"start": "table-danger",
"up": "table-success",
"down": "table-secondary",
"start": "table-danger",
"passive": "table-info",
})[row[3]] + "\">"))
// Add link to detail for first column
if isIPv6 {