modules: Make luci-base sufficient to use luci apps
[project/luci.git] / themes / luci-theme-bootstrap / luasrc / view / themes / bootstrap / header.htm
index 4347f133a463c3d5c64c3ccf47f150c2afbce6dc..a6bb326976d1cd3479f53710e717614d3abb762e 100644 (file)
                                <div class="alert-message warning">
                                        <h4><%:No password set!%></h4>
                                        <p><%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%></p>
-                                       <div class="right"><a class="btn" href="<%=url("admin/system/admin")%>"><%:Go to password configuration...%></a></div>
+                                       <% if disp.lookup("amdin/system/admin") then %>
+                                         <div class="right"><a class="btn" href="<%=url("admin/system/admin")%>"><%:Go to password configuration...%></a></div>
+                                       <% end %>
                                </div>
                        <%- end -%>