diff options
author | Dirk Brenken <dev@brenken.org> | 2018-11-14 11:49:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 11:49:05 +0100 |
commit | b1cd4237dd344e8059670dd390101eb1cc9a4b63 (patch) | |
tree | ba2938ae87184c963e632693130028ca5d5b509b /applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm | |
parent | 206df14e7333f8d229d09ab5bb057fbfe1e4b43d (diff) | |
parent | 83c68a8b2fe7a7ea991f706d717d879ed150ea9f (diff) |
Merge pull request #2284 from dibdot/travelmate
luci-app-travelmate: consolidate css
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm b/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm index 1a53b577d1..0b025fdaee 100644 --- a/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm +++ b/applications/luci-app-travelmate/luasrc/view/travelmate/runtime.htm @@ -3,17 +3,7 @@ Copyright 2017-2018 Dirk Brenken (dev@brenken.org) This is free software, licensed under the Apache License, Version 2.0 -%> -<style type="text/css"> - .runtime - { - color: #37c; - font-weight: bold; - display: inline-block; - width: 100%; - padding-top: 0.5rem; - } -</style> - +<%+travelmate/travelmate_css%> <script type="text/javascript"> //<![CDATA[ function status_update(json) @@ -148,7 +138,7 @@ This is free software, licensed under the Apache License, Version 2.0 <label class="cbi-value-title" for="button_1"><%:Restart Travelmate%></label> <div class="cbi-value-field"> <input class="cbi-button cbi-button-reset" id="btn1" type="button" name="do_restart" value="<%:Restart%>" onclick="btn_action(this)" /> - <span id="btn1_running" style="display:inline-block; width:16px; height:16px; margin:0 5px"></span> + <span id="btn1_running" class="btn_running"></span> </div> </div> <div class="cbi-value" id="button_2"> @@ -200,10 +190,10 @@ This is free software, licensed under the Apache License, Version 2.0 if fs.access("/usr/bin/qrencode") then qrcode = luci.sys.exec("/usr/bin/qrencode --inline --8bit --type=SVG --output=- 'WIFI:S:\"'" .. e_ssid .. "'\";T:'" .. enc .. "';P:\"'" .. e_key .. "'\";H:'" .. hidden .. "';'") -%> - <div class="cbi-value" style="border-bottom: 0px; margin-bottom: 0px; padding: 0.25em 0.6em; text-align: left"> + <div class="qr-code"> <%=qrcode%> </div> - <div class="cbi-value" style="border-bottom: 0px; margin-bottom: 0px; padding: 0.25em 0.6em; text-align: left"> + <div class="qr-code"> <em><%:AP on %><%=device%><%: with SSID %>"<%=ssid%>"</em> <hr /> </div> @@ -214,7 +204,7 @@ This is free software, licensed under the Apache License, Version 2.0 end) if not qrcode then -%> - <div class="cbi-value" style="border-bottom: 0px; margin-bottom: 0px; padding: 0.25em 0.6em; text-align: left"> + <div class="qr-code"> <em><%:For QR-Code support please install package 'qrencode'!%></em> </div> <%- |