Matthew
Active Member
Some of us have occasional issues with Content Sharing turning itself off, this status can be checked in Diag->DLNA Reset but an immediate display is more convenient.
This change adds such a display to the header.
A tool-tip details the precise DLNA server status.
This change adds such a display to the header.
A tool-tip details the precise DLNA server status.
Diff:
--- /mod/webif/html/lib/topbar-orig.jim
+++ /mod/webif/html/lib/topbar.jim
@@ -27,11 +27,18 @@
if {[system model] eq "HDR" && [system usbdisks] > 0} {
source /mod/webif/include/usbeject.jim
}
+set dmson [system param DMS_START_ON]
+set lstn [system is_listening 9000]
+set stat [expr $dmson?"Server is enabled":"Server is disabled"]
+set img [expr $dmson && $lstn?"181_1_00_Help2_Green.png":"181_1_00_Help1_Red.png"]
+set stat [expr $lstn?"$stat and is running.":"$stat and is NOT running."]
source /mod/webif/include/vfd.jim
-puts {
+puts "
<div id=idletime></div>
-</div>
-}
+<div id=serverstat>
+Server Status: <img class=va src=/images/$img title=\"$stat\">
+</div></div>
+"
source /mod/webif/include/toolbar.jim
puts {
<script type=text/javascript src=/js/topbar.js></script>
Diff:
--- /mod/webif/html/css/style-orig.css
+++ /mod/webif/html/css/style.css
@@ -94,7 +94,7 @@
font-family: vfd, 'Lucida Console', Monaco, monospace;
}
-#idletime
+#idletime, #serverstat
{
position: absolute;
left: 50px;
top: 45px;
font-style: italic;
font-size: 12px;
}
-
+#serverstat {
+ left: 32px;
+ top: 65px;
+}
+#serverstat img{
+ width: 26px;
+ height: 26px;
+}
div.footer
{
clear: both;