summaryrefslogtreecommitdiff
path: root/web/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'web/kvm')
-rw-r--r--web/kvm/index.html38
-rw-r--r--web/kvm/navbar-health.pug13
-rw-r--r--web/kvm/window-about.pug2
3 files changed, 49 insertions, 4 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 1000ddaa..1007bb99 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -106,6 +106,38 @@
</div>
</li>
</div>
+ <div class="hidden" id="fan-health-dropdown">
+ <li class="left"><a class="menu-button" href="#"><img class="hidden" data-dont-hide-menu id="fan-health-led" src="/share/svg/led-fan.svg"></a>
+ <div class="menu" data-dont-hide-menu>
+ <div class="text">
+ <table>
+ <tr>
+ <td rowspan="2"><img class="sign " src="/share/svg/warning.svg"></td>
+ <td style="line-height:1.5"><b>Raspberry Pi's health is at risk</b></td>
+ </tr>
+ <tr>
+ <td><sup style="line-height:1">This is not a drill! A red icon indicates a current issue,<br>
+ a yellow one that was observed in the past</sup></td>
+ </tr>
+ </table>
+ </div>
+ <div id="fan-health-message-fail">
+ <hr>
+ <div class="text">
+ <table>
+ <tr>
+ <td rowspan="2"><img class="sign led-gray" src="/share/svg/led-fan.svg"></td>
+ <td style="line-height:1.5"><b>Fan failed</b></td>
+ </tr>
+ <tr>
+ <td><sup style="line-height:1">A fan error occured, please check the log</sup></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ </div>
+ </li>
+ </div>
<li class="right"><a class="menu-button" href="#"><img class="led-gray" data-dont-hide-menu id="link-led" src="/share/svg/led-link.svg"><img class="led-gray" data-dont-hide-menu id="stream-led" src="/share/svg/led-stream.svg"><img class="led-gray" data-dont-hide-menu id="hid-keyboard-led" src="/share/svg/led-hid-keyboard.svg"><img class="led-gray" data-dont-hide-menu id="hid-mouse-led" src="/share/svg/led-hid-mouse.svg">System</a>
<div class="menu" data-dont-hide-menu>
<table class="kv" style="width: calc(100% - 20px)">
@@ -1539,10 +1571,10 @@
<div class="code" id="about-meta"><span class="code-comment">No data</span>
</div>
</div>
- <input type="radio" name="about-tab-button" id="about-tab-hw-button">
- <label for="about-tab-hw-button">Hardware</label>
+ <input type="radio" name="about-tab-button" id="about-tab-hardware-button">
+ <label for="about-tab-hardware-button">Hardware</label>
<div class="tab">
- <div class="code" id="about-hw"><span class="code-comment">No data</span>
+ <div class="code" id="about-hardware"><span class="code-comment">No data</span>
</div>
</div>
<input type="radio" name="about-tab-button" id="about-tab-version-button">
diff --git a/web/kvm/navbar-health.pug b/web/kvm/navbar-health.pug
index 91003bab..455f0339 100644
--- a/web/kvm/navbar-health.pug
+++ b/web/kvm/navbar-health.pug
@@ -17,3 +17,16 @@ div(id="hw-health-dropdown" class="hidden")
+menu_message("led-overheating", "Overheating detected", "led-gray")
| Frequency capping due to overheating,#[br]
| improve cooling of the Raspberry Pi
+
+div(id="fan-health-dropdown" class="hidden")
+ li(class="left")
+ a(class="menu-button" href="#")
+ +navbar_led("fan-health-led", "led-fan", "hidden")
+ div(data-dont-hide-menu class="menu")
+ +menu_message("warning", "Raspberry Pi's health is at risk")
+ | This is not a drill! A red icon indicates a current issue,#[br]
+ | a yellow one that was observed in the past
+ div(id="fan-health-message-fail")
+ hr
+ +menu_message("led-fan", "Fan failed", "led-gray")
+ | A fan error occured, please check the log
diff --git a/web/kvm/window-about.pug b/web/kvm/window-about.pug
index 830ddb10..18b5f23c 100644
--- a/web/kvm/window-about.pug
+++ b/web/kvm/window-about.pug
@@ -28,7 +28,7 @@ div(id="about-window" class="window")
br
div(class="tabs-box")
+about_tab("meta", "Meta", true)
- +about_tab("hw", "Hardware")
+ +about_tab("hardware", "Hardware")
+about_tab("version", "Version")
+about_tab("thanks", "Thanks")