luci-theme-material: show logo also on login page

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
This commit is contained in:
Martin Schiller 2019-08-29 14:17:33 +02:00
parent 3fffcdef61
commit 92069c1f74
2 changed files with 1 additions and 5 deletions

View 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;

View file

@ -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()">