summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-rosy
diff options
context:
space:
mode:
authorYanlan Shen <yanlan.shen.@rosinson.com>2018-11-14 11:49:33 +0800
committerYanlan Shen <yanlan.shen.@rosinson.com>2018-11-14 11:49:33 +0800
commit4335c50a2b4b83b1fe213b5c4007c47f2c787d1f (patch)
tree3ff24901ab5025a9b13be47ff65f071eb5823c93 /themes/luci-theme-rosy
parent1ca22ec3f05bec62f6b7a0cb2e4f3c04f958e146 (diff)
luci-theme-rosy: Remove redundant statements
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
Diffstat (limited to 'themes/luci-theme-rosy')
-rw-r--r--themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm4
1 files changed, 1 insertions, 3 deletions
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 e7316770b..89bbd815b 100644
--- 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>' %{