diff options
author | Martin Schiller <ms@dev.tdt.de> | 2019-08-29 14:17:33 +0200 |
---|---|---|
committer | Martin Schiller <ms@dev.tdt.de> | 2019-08-29 14:17:33 +0200 |
commit | 92069c1f74587a8d3740b0a9eeda167dcb2f1375 (patch) | |
tree | 6f60d4a4b636fbbda4d9bd9d9053d26f59108070 | |
parent | 3fffcdef61b19c8fc6a4fb448cf5abb88d4ba002 (diff) |
luci-theme-material: show logo also on login page
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
-rw-r--r-- | themes/luci-theme-material/htdocs/luci-static/material/cascade.css | 4 | ||||
-rw-r--r-- | themes/luci-theme-material/luasrc/view/themes/material/header.htm | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css index d74077853a..91f87c69c1 100644 --- a/themes/luci-theme-material/htdocs/luci-static/material/cascade.css +++ b/themes/luci-theme-material/htdocs/luci-static/material/cascade.css @@ -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; diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 7ce195cc9f..76eeec05eb 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -186,7 +186,7 @@ <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()"> |