-
-
Notifications
You must be signed in to change notification settings - Fork 399
upsstats*.html.sample: Enhance model detection in upsstats HTML templates #3180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
upsstats*.html.sample: Enhance model detection in upsstats HTML templates #3180
Conversation
…ates. Some devices lack `ups.model`, causing the CGI to incorrectly report "Not supported". Signed-off-by: Atanas Vladimirov <[email protected]>
Signed-off-by: Atanas Vladimirov <[email protected]>
|
❌ Build nut 2.8.4.3769-master failed (commit b601286591 by @atanas-vladimirov) |
| @REFRESH@ | ||
| <title>@HOSTDESC@ : @VAR ups.model@ on @HOST@</title> | ||
| <title> | ||
| @HOSTDESC@ : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check if any rendering aspects change in title or table cells that have now added the sort of whitespace around text in their contents? They were like "closing angle bracket"-"evaluated string" and now there's an end of line in-between...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have double-checked how it looks after the change(s) - you can see it here - https://hodor.bsdbg.net/cgi-bin/nut/upsstats.cgi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the link, looks good :)
| @REFRESH@ | ||
| <title>@HOSTDESC@ : @VAR ups.model@ on @HOST@</title> | ||
| <title> | ||
| @HOSTDESC@ : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the link, looks good :)
…ols#3180] Signed-off-by: Jim Klimov <[email protected]>
Some devices lack
ups.model, causing the CGI to incorrectly report "Not supported".Tested on Masterguard A1000.
Signed-off-by: Atanas Vladimirov [email protected]