luci-theme-rosy: Modify the layout of the header and footer

Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
This commit is contained in:
Yanlan Shen 2018-11-06 09:59:35 +08:00
parent f67cd74f01
commit 641681fa32
2 changed files with 8 additions and 7 deletions

View file

@ -25,6 +25,8 @@
local categories = disp.node_childs(tree)
%>
</div>
</div>
</div>
<footer class="mobile-hide">
<a href="https://github.com/openwrt/luci">Powered by<%= ver.luciname %> (<%= ver.luciversion %>)</a> /
@ -37,8 +39,6 @@
</ul>
<% end %>
</footer>
</div>
</div>
<script>
var luciLocation = <%= luci.http.write_json(luci.dispatcher.context.path) %>;
@ -47,4 +47,4 @@
<script src="<%=media%>/js/script.js?v=git-18.247.71242-9541751"></script>
</body>
</html>
</html>

View file

@ -273,11 +273,12 @@
</div>
<div class="main-right">
<div id="maincontent">
<div class="logoImg">
<img class="mobile-hide" src="<%=media%>/logo.png" alt="Rosy">
<img src="<%=media%>/mobile-loginBG.png" class="PC-hide">
<a class="brand" href="#"><%=boardinfo.hostname or "?"%></a>
</div>
<div class="container">
<div class="logoImg">
<img src="<%=media%>/logo.png" alt="Rosy">
<a class="brand" href="#"><%=boardinfo.hostname or "?"%></a>
</div>
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
<div class="alert-message warning">
<h4>