luci-theme-rosy: Modify the layout of the header and footer
authorYanlan Shen <yanlan.shen.@rosinson.com>
Tue, 6 Nov 2018 01:59:35 +0000 (09:59 +0800)
committerYanlan Shen <yanlan.shen.@rosinson.com>
Fri, 9 Nov 2018 07:06:38 +0000 (15:06 +0800)
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
themes/luci-theme-rosy/luasrc/view/themes/rosy/footer.htm
themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm

index 3795d37cb7ce0306a38687ffc0f5b271fe8eb361..f0cbe4e9689c3d5f089e12752f14b414160cd34c 100755 (executable)
@@ -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>
\ No newline at end of file
+</html>
index 62a34c04b40eb5df7186639a4e60e0e6dda4430b..e7316770bfa60696f3b3019fec51114332eae094 100644 (file)
                </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>