File tree Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Expand file tree Collapse file tree 3 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,11 @@ several `FSD` notifications into one executed action. [PR #3097]
200200
201201 - `upsset` should now recognize `RANGE NUMBER` and `NUMBER` types. [#3164]
202202
203- - `upsstats` has now JSON output mode via `?json` (or `&json`) CGI query
204- parameter. [issue #2524, PR #3171]
203+ - `upsstats` tool updates:
204+ * Now has JSON output mode via `?json` (or `&json`) CGI query
205+ parameter. [issue #2524, PR #3171]
206+ * Handle `device.model` in addition to `ups.model` in upsstats HTML
207+ templates. [#XXXX]
205208
206209 - `upssched` tool updates:
207210 * Previously in PR #2896 (NUT releases v2.8.3 and v2.8.4) the `UPSNAME` and
Original file line number Diff line number Diff line change 2424<head>
2525<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2626@REFRESH@
27- <title>@HOSTDESC@ : @VAR ups.model@ on @HOST@</title>
27+ <title>
28+ @HOSTDESC@ :
29+ @IFSUPP device.model@
30+ @VAR device.model@
31+ @ELSE@
32+ @VAR ups.model@
33+ @ENDIF@
34+ on @HOST@
35+ </title>
2836<!-- LINK REL="stylesheet" TYPE="text/css" HREF="http://localhost/nut/nut.css" / -->
2937<style type="text/css">
3038body{color:#00fc00; background:#808080; font-family:"Times New Roman", Times, serif;}
@@ -38,7 +46,15 @@ table{background:#000;}
3846<table style="margin:auto" BORDER="1" CELLSPACING="0" CELLPADDING="10">
3947
4048<tr>
41- <th COLSPAN="20">Network UPS Tools upsstats @VERSION@ - @HOSTDESC@ - @VAR ups.model@ on @HOST@</th>
49+ <th COLSPAN="20">
50+ Network UPS Tools upsstats @VERSION@ - @HOSTDESC@ -
51+ @IFSUPP device.model@
52+ @VAR device.model@
53+ @ELSE@
54+ @VAR ups.model@
55+ @ENDIF@
56+ on @HOST@
57+ </th>
4258</tr>
4359
4460<tr>
@@ -63,7 +79,13 @@ table{background:#000;}
6379
6480<tr>
6581<th ALIGN="RIGHT">UPS Model:</th>
66- <td>@VAR ups.model@</td>
82+ <td>
83+ @IFSUPP device.model@
84+ @VAR device.model@
85+ @ELSE@
86+ @VAR ups.model@
87+ @ENDIF@
88+ </td>
6789</tr>
6890
6991<tr>
Original file line number Diff line number Diff line change @@ -79,7 +79,11 @@ th, td{padding:0.5ex;}
7979</td>
8080
8181<td class="t1">
82+ @IFSUPP device.model@
83+ @VAR device.model@
84+ @ELSE@
8285@VAR ups.model@
86+ @ENDIF@
8387</td>
8488
8589<td style="background:@STATUSCOLOR@">
You can’t perform that action at this time.
0 commit comments