themes/openwrt.org: use ~= instead of not ( ... == ... )
authorDaniel Golle <daniel@makrotopia.org>
Tue, 2 Oct 2012 15:19:23 +0000 (15:19 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 2 Oct 2012 15:19:23 +0000 (15:19 +0000)
themes/openwrt/luasrc/view/themes/openwrt.org/header.htm

index 2366d4f..9f85959 100644 (file)
@@ -173,7 +173,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
                        </div>
                </noscript>
 
                        </div>
                </noscript>
 
-               <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and not ( category=="failsafe" ) then -%>
+               <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and category ~= "failsafe" then -%>
                <div class="errorbox">
                        <strong><%:No password set!%></strong><br />
                        <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%><br />
                <div class="errorbox">
                        <strong><%:No password set!%></strong><br />
                        <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%><br />