Browse Source

Added hostname to web UI side menu (#404)

i18n
Xose Pérez 7 years ago
parent
commit
2f1d7fdc98
5 changed files with 3167 additions and 3163 deletions
  1. BIN
      code/espurna/data/index.html.gz
  2. +3160
    -3158
      code/espurna/static/index.html.gz.h
  3. +4
    -0
      code/html/custom.css
  4. +1
    -4
      code/html/custom.js
  5. +2
    -1
      code/html/index.html

BIN
code/espurna/data/index.html.gz View File


+ 3160
- 3158
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 4
- 0
code/html/custom.css View File

@ -227,3 +227,7 @@ div.loading {
margin: 8px 0 0 10px;
display: none;
}
#menu span.small {
font-size: 60%;
padding-left: 9px;
}

+ 1
- 4
code/html/custom.js View File

@ -739,7 +739,7 @@ function processData(data) {
if ("app_version" in data) {
title = title + " " + data.app_version;
}
$(".pure-menu-heading").html(title);
$("span[name=title]").html(title);
if ("hostname" in data) {
title = data.hostname + " - " + title;
}
@ -1008,7 +1008,6 @@ function processData(data) {
var post = element.attr("post") || "";
element.val(pre + data[key] + post);
}
return;
}
// Look for SPANs
@ -1017,14 +1016,12 @@ function processData(data) {
var pre = element.attr("pre") || "";
var post = element.attr("post") || "";
element.html(pre + data[key] + post);
return;
}
// Look for SELECTs
var element = $("select[name=" + key + "]");
if (element.length > 0) {
element.val(data[key]);
return;
}
});


+ 2
- 1
code/html/index.html View File

@ -72,7 +72,8 @@
<div id="menu">
<div class="pure-menu">
<span class="pure-menu-heading">ESPurna 0.0.0</span>
<span class="pure-menu-heading" name="title">ESPurna 0.0.0</span>
<span class="pure-menu-heading small" name="hostname">HOSTNAME</span>
<ul class="pure-menu-list">


Loading…
Cancel
Save