luci-theme-material: show logo also on login page 3024/head
authorMartin Schiller <ms@dev.tdt.de>
Thu, 29 Aug 2019 12:17:33 +0000 (14:17 +0200)
committerMartin Schiller <ms@dev.tdt.de>
Thu, 29 Aug 2019 12:17:33 +0000 (14:17 +0200)
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
themes/luci-theme-material/htdocs/luci-static/material/cascade.css
themes/luci-theme-material/luasrc/view/themes/material/header.htm

index d74077853a60973c3b793e794d58499a67446a2d..91f87c69c1a1175675215d50f2dcf461da177e1a 100644 (file)
@@ -401,10 +401,6 @@ header > .fill > .container > #logo > img {
        margin-top: -.1rem;
 }
 
-body:not(.logged-in) > header > .fill > .container > #logo {
-       display: none;
-}
-
 header > .fill > .container > .brand {
        font-size: 1.4rem;
        position: absolute;
index 7ce195cc9f8cfa13c6e6ee132c56d38713ab478d..76eeec05eba97d1b9aeedf12c403e48b74021287 100644 (file)
        <div class="fill">
                <div class="container">
                        <span class="showSide"></span>
-                       <a id="logo" href="<%=url("admin/status/overview")%>"><img src="<%=media%>/brand.png" alt="OpenWrt"></a>
+                       <a id="logo" href="<% if luci.dispatcher.context.authsession then %><%=url('admin/status/overview')%><% else %>#<% end %>"><img src="<%=media%>/brand.png" alt="OpenWrt"></a>
                        <a class="brand" href="#"><%=boardinfo.hostname or "?"%></a>
                        <div class="status">
                                <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">