luci-theme-openwrt-2020: remove xhr_poll_status markup
authorJo-Philipp Wich <jo@mein.io>
Mon, 13 Apr 2020 10:42:17 +0000 (12:42 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Apr 2020 15:06:34 +0000 (17:06 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css
themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm

index 74b4e0b77d710e82b69b8dc0f5b539f9c9883acd..f83f1ba5782eb18e5768ac99950fccbcb523a2be 100644 (file)
@@ -107,8 +107,7 @@ body {
        white-space: nowrap;
 }
 
-#indicators > [data-style="inactive"],
-#indicators > * > #xhr_poll_status_off {
+#indicators > [data-style="inactive"] {
        background: var(--main-bright-color);
        color: var(--secondary-bright-color);
        border: 2px solid var(--secondary-bright-color);
@@ -116,12 +115,6 @@ body {
        padding: 0 calc(.5em - 2px);
 }
 
-#indicators > * > #xhr_poll_status_off {
-       border-radius: 1em;
-       margin: 0 -.5em;
-       display: block;
-}
-
 #menubar h2,
 .skiplink {
        display: none;
index 00834b307387d8d625630fe1984d4fb6fc38ff64..0ebd6a9a9e8db16c6f623ac2bc095db44b7f59ab 100644 (file)
 
        <span class="hostname"><%=(boardinfo.hostname or "?")%></span>
        <span class="distversion"><%=ver.distversion%></span>
-       <span id="indicators">
-               <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
-                       <span id="xhr_poll_status_on" style="display:none"><%:Refreshing%></span>
-                       <span id="xhr_poll_status_off" style="display:none"><%:Paused%></span>
-               </span>
-       </span>
+       <span id="indicators"></span>
 </div>
 
 <div id="modemenu" style="display:none"></div>