Merge pull request #3024 from TDT-AG/pr/20190829-material-logo

luci-theme-material: show logo also on login page
This commit is contained in:
Florian Eckert 2019-09-13 14:20:44 +02:00 committed by GitHub
commit 4eeded7051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()">