diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-11-14 07:28:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 07:28:25 +0100 |
commit | e535ef5828d509f1c79cb160a22c159fe4fd9f1f (patch) | |
tree | e7a2de1f6dad59a1883a51ba5e1e0bcce62edffc | |
parent | 1ca22ec3f05bec62f6b7a0cb2e4f3c04f958e146 (diff) | |
parent | 4d3d6c66d671430f8aa887e8c707fc5833813322 (diff) |
Merge pull request #2279 from yglb/master
luci-theme-rosy: Remove redundant statements and fixed typo
-rw-r--r-- | themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm | 6 |
1 files changed, 2 insertions, 4 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..21fa78e3c 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>' %{ @@ -287,7 +285,7 @@ <p> <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%> </p> - <div><a class="btn" href="<%=url(" admin/system/admin")%>"> <%:Go to password configuration...%></a></div> + <div><a class="btn" href="<%=url("admin/system/admin")%>"> <%:Go to password configuration...%></a></div> </div> <%- end -%> |