luci-theme-material: do not infer login state from url (#520)
[project/luci.git] / themes / luci-theme-material / luasrc / view / themes / material / header.htm
index 99afc06..153be10 100755 (executable)
     <script src="<%=resource%>/xhr.js"></script>
 </head>
 
-<body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %>">
+<body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>">
 
 <header>
        <div class="container">