git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1ca22ec
)
luci-theme-rosy: Remove redundant statements
author
Yanlan Shen
<redacted>
Wed, 14 Nov 2018 03:49:33 +0000
(11:49 +0800)
committer
Yanlan Shen
<redacted>
Wed, 14 Nov 2018 03:49:33 +0000
(11:49 +0800)
Signed-off-by: Yanlan Shen <redacted>
themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm
patch
|
blob
|
history
diff --git
a/themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm
b/themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm
index e7316770bfa60696f3b3019fec51114332eae094..89bbd815bd33b672051ccc475f8e7fd9d1795746 100644
(file)
--- a/
themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm
+++ b/
themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm
@@
-154,9
+154,7
@@
local nnode = cattree.nodes[r]
local grandchildren = disp.node_childs(nnode)
- if #grandchildren > 0 then
-
- else
+ if #grandchildren <= 0 then
local title = pcdata(striptags(translate(nnode.title)))
write('<span class="label logout"><a data-title="%s" href="%s">%s</a></span>' %{
git clone https://git.99rst.org/PROJECT