summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-01-10 17:19:55 +0200
committerGitHub <noreply@github.com>2020-01-10 17:19:55 +0200
commit1c75687854395cb95fa18668e5d823fb2fdfd085 (patch)
treef7025446a4725733dc87828fe259fa6e278659d2 /applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot
parent1ab364499aa487567807810a18f2a394f8a565b0 (diff)
parent37dd98bde3ec04d540dafa6302cdfcf9e2ea07aa (diff)
Merge pull request #3492 from stangri/master-luci-app-advanced-reboot
luci-app-advanced-reboot: pluggable device files, highlight current partition
Diffstat (limited to 'applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot')
-rw-r--r--applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm
index f3d8338c47..49985b32ce 100644
--- a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm
+++ b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm
@@ -1,7 +1,7 @@
<%#
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
- Copyright 2017-2018 Stan Grishin <stangri@melmac.net>
+ Copyright 2017-2020 Stan Grishin <stangri@melmac.net>
Licensed to the public under the Apache License 2.0.
-%>
@@ -28,7 +28,7 @@
<div class="th cbi-section-table-cell"><%:Firmware%></div>
<div class="th cbi-section-table-cell"><%:Reboot%></div>
</div>
- <div class="tr cbi-section-table-row cbi-rowstyle-1">
+ <div class="tr cbi-section-table-row cbi-rowstyle-<%- if bev1p1 == current_partition then -%><%=1%><%- else -%><%=2%><%- end -%>">
<div class="td">
<%=string.format("%X", bev1p1)%>
</div>
@@ -52,7 +52,7 @@
<%- end -%>
</div>
</div>
- <div class="tr cbi-section-table-row cbi-rowstyle-2">
+ <div class="tr cbi-section-table-row cbi-rowstyle-<%- if bev1p2 == current_partition then -%><%=1%><%- else -%><%=2%><%- end -%>">
<div class="td">
<%=string.format("%X", bev1p2)%>
</div>