change format of test records table
This commit is contained in:
parent
19c6967883
commit
4230e0889a
16
ews/ews.go
16
ews/ews.go
@ -566,7 +566,7 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
|
||||
<td style="color: red; font-weight: bold;">%s</td>
|
||||
<td style="color: red; font-weight: bold;">%s</td>
|
||||
<td style="color: red; font-weight: bold;">%s</td>
|
||||
</tr>%s`, ul.USN, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.LastChg, "\r\n")
|
||||
</tr>%s`, ul.USN, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.LastChg, "\r\n")
|
||||
} else {
|
||||
last = last + fmt.Sprintf(`<tr>
|
||||
<td style="color: blue;">%s</td>
|
||||
@ -581,7 +581,7 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
|
||||
<td style="color: blue;">%s</td>
|
||||
<td style="color: blue;">%s</td>
|
||||
<td style="color: blue;">%s</td>
|
||||
</tr>%s`, ul.USN, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.LastChg, "\r\n")
|
||||
</tr>%s`, ul.USN, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.LastChg, "\r\n")
|
||||
}
|
||||
|
||||
if ul.Model != "" {
|
||||
@ -674,10 +674,10 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
|
||||
<td style="color: red; font-weight: bold;">%s</td>
|
||||
<td style="color: red; font-weight: bold;">%s</td>
|
||||
</tr>%s`,
|
||||
uh.USN, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.LastChg, "\r\n")
|
||||
uh.USN, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.LastChg, "\r\n")
|
||||
} else {
|
||||
bkup = bkup + fmt.Sprintf(`<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>%s`,
|
||||
uh.USN, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.LastChg, "\r\n")
|
||||
uh.USN, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.LastChg, "\r\n")
|
||||
|
||||
}
|
||||
}
|
||||
@ -965,16 +965,16 @@ func (e *EWS) TemplateUutInfo(loc, locTime, misc, last, bkup string) string {
|
||||
<table>
|
||||
<tr>
|
||||
<th>USN</th>
|
||||
<th>SKU</th>
|
||||
<th>MO</th>
|
||||
<th>Line</th>
|
||||
<th>Stage</th>
|
||||
<th>MAC</th>
|
||||
<th>IP Address</th>
|
||||
<th>Server</th>
|
||||
<th>Test Item</th>
|
||||
<th>Status</th>
|
||||
<th>Message</th>
|
||||
<th>SKU</th>
|
||||
<th>MO</th>
|
||||
<th>Line</th>
|
||||
<th>Stage</th>
|
||||
<th>Last Change</th>
|
||||
</tr>
|
||||
%s
|
||||
|
Loading…
x
Reference in New Issue
Block a user