Skip to content

Commit

Permalink
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion additional/broadband/www/cards/002_broadband.lp
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@ end
html[#html+1] = ui_helper.createSimpleLight("1", "Mobile connected")
end
if tonumber(content_rpc.rx_bytes) and tonumber(content_rpc.tx_bytes) and tonumber(content_rpc.uptime) then
html[#html+1] = format('<span class="simple-desc"><i class="icon-cloud-upload icon-small blueDark"></i> %s <i class="icon-cloud-download icon-small blueDark"></i> %s %s/<i>d</i></span>', bytes2string(content_rpc.tx_bytes), bytes2string(content_rpc.rx_bytes), bytes2string((content_rpc.rx_bytes+content_rpc.tx_bytes)/(content_rpc.uptime/86400)))
html[#html+1] = format('<span class="simple-desc"><i class="icon-cloud-upload icon-small status-icon"></i> %s <i class="icon-cloud-download icon-small status-icon"></i> %s %s/<i>d</i></span>', bytes2string(content_rpc.tx_bytes), bytes2string(content_rpc.rx_bytes), bytes2string((content_rpc.rx_bytes+content_rpc.tx_bytes)/(content_rpc.uptime/86400)))
end
ngx.print(html)
ngx.print('\
8 changes: 4 additions & 4 deletions additional/gateway/www/cards/001_gateway.lp
Original file line number Diff line number Diff line change
@@ -65,10 +65,10 @@ local headerAttr = {
'); ngx.print( ui_helper.createCardHeader(T(symbolv1), "modals/gateway-modal.lp", nil, nil, headerAttr) ); ngx.print('\
<div class="content card_bg" data-bg-text="&#xf129;">\
<span class="simple-desc"><i class="icon-info-sign green"></i>&nbsp; Version: <strong>'); ngx.print(content.name .. " (" .. content.version .. ")"); ngx.print('</strong></span>\
<span class="simple-desc"><i class="icon-time blueDark"></i>&nbsp; System Time: <strong id="gateway-modal-time">'); ngx.print(os.date("%d/%m/%Y %H:%M:%S",os.time())); ngx.print('</strong></span>\
<span class="simple-desc"><i class="icon-circle-arrow-up blueDark"></i>&nbsp; Up: <strong id="gateway-modal-uptime">'); ngx.print(secondsToTime(content.uptime)); ngx.print('</strong></span>\
<span class="simple-desc"><i class="icon-dashboard blueDark"></i>&nbsp; CPU Usage: <strong><span id="gateway-modal-cpu">'); ngx.print(content.cpu); ngx.print('</span>% [<span id="gateway-modal-load">'); ngx.print(content.load); ngx.print('</span>]</strong></span>\
<span class="simple-desc"><i class="icon-hdd blueDark"></i>&nbsp; RAM: <span id="gateway-modal-ram-total">'); ngx.print(format('%.2f', content.ram_total / 1024)); ngx.print('</span>MB <strong>[<span id="gateway-modal-ram-free">'); ngx.print(format('%.2f', content.ram_free / 1024)); ngx.print('</span>MB Free]</strong></span>\
<span class="simple-desc"><i class="icon-time status-icon"></i>&nbsp; System Time: <strong id="gateway-modal-time">'); ngx.print(os.date("%d/%m/%Y %H:%M:%S",os.time())); ngx.print('</strong></span>\
<span class="simple-desc"><i class="icon-circle-arrow-up status-icon"></i>&nbsp; Up: <strong id="gateway-modal-uptime">'); ngx.print(secondsToTime(content.uptime)); ngx.print('</strong></span>\
<span class="simple-desc"><i class="icon-dashboard status-icon"></i>&nbsp; CPU Usage: <strong><span id="gateway-modal-cpu">'); ngx.print(content.cpu); ngx.print('</span>% [<span id="gateway-modal-load">'); ngx.print(content.load); ngx.print('</span>]</strong></span>\
<span class="simple-desc"><i class="icon-hdd status-icon"></i>&nbsp; RAM: <span id="gateway-modal-ram-total">'); ngx.print(format('%.2f', content.ram_total / 1024)); ngx.print('</span>MB <strong>[<span id="gateway-modal-ram-free">'); ngx.print(format('%.2f', content.ram_free / 1024)); ngx.print('</span>MB Free]</strong></span>\
</div>\
</div>\
</div>\
5 changes: 2 additions & 3 deletions build/common/170-Light-Theme
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
if [ "$THEME" = "light" ]; then
if [ $COLOR = monochrome ]; then
RGB_BTN=404040; RGB_HDR=eee; RGB_NAV=404040; RGB_SYM=018ed42b; RGB_GRAD_FROM=404040; RGB_GRAD_TO=404040; RGB_TXT=404040; RGB_HDR_TXT=$RGB_TXT;
RGB_BTN=404040; RGB_HDR=eee; RGB_NAV=404040; RGB_SYM=018ed42b; RGB_GRAD_FROM=404040; RGB_GRAD_TO=404040; RGB_TXT=404040; RGB_HDR_TXT=$RGB_TXT; RGB_STATUS_ICON=$RGB_NAV;
else
RGB_TXT=fff
RGB_HDR_TXT=$RGB_HDR
RGB_TXT=fff; RGB_HDR_TXT=$RGB_HDR; RGB_STATUS_ICON=$RGB_HDR;
fi
sed \
-e "$ a a{color:#$RGB_NAV;}" \
1 change: 1 addition & 0 deletions build/common/175-Telstra-Theme
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
elif [ "$THEME" = "Telstra" ]; then
RGB_STATUS_ICON=3399cc;
sed \
-e '$ a .card_bg:after{z-index:-20;}' \
-i /www/docroot/css/gw.css
4 changes: 2 additions & 2 deletions build/common/180-Night-Theme
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
elif [ "$THEME" = "night" ]; then
if [ $COLOR = monochrome ]; then
RGB_BTN=272c30; RGB_HDR=272c30; RGB_NAV=0088cc; RGB_SYM=eeeeee0f; RGB_GRAD_FROM=272c30; RGB_GRAD_TO=272c30; RGB_TXT=fff;
RGB_BTN=272c30; RGB_HDR=272c30; RGB_NAV=0088cc; RGB_SYM=eeeeee0f; RGB_GRAD_FROM=272c30; RGB_GRAD_TO=272c30; RGB_TXT=fff; RGB_STATUS_ICON=$RGB_NAV;
else
RGB_TXT=$RGB_HDR
RGB_TXT=$RGB_HDR; RGB_STATUS_ICON=$RGB_HDR;
fi
sed \
-e "$ a a{color:#$RGB_NAV;}" \
3 changes: 3 additions & 0 deletions build/common/185-Theme-End
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
fi
sed \
-e "$ a .status-icon{color:#$RGB_STATUS_ICON;}" \
-i /www/docroot/css/gw.css

0 comments on commit b9bb79d

Please sign in to comment.