From: Manuel Munz Date: Mon, 28 Jan 2013 22:49:59 +0000 (+0000) Subject: themes/bootstrap: Fixes for mobile devices: add initial scale, don't show hostname... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b7de5ce7c1ae19cef8c2e2b9603f58fa5111214a;p=project%2Fluci.git themes/bootstrap: Fixes for mobile devices: add initial scale, don't show hostname in header, partly fixes #481 --- diff --git a/themes/bootstrap/htdocs/luci-static/bootstrap/mobile.css b/themes/bootstrap/htdocs/luci-static/bootstrap/mobile.css new file mode 100644 index 0000000000..e9d9b61aa2 --- /dev/null +++ b/themes/bootstrap/htdocs/luci-static/bootstrap/mobile.css @@ -0,0 +1,3 @@ +header h3 a, header .brand { + display:none !important; +} diff --git a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm index c79c152ba9..a49b7d4072 100644 --- a/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm +++ b/themes/bootstrap/luasrc/view/themes/bootstrap/header.htm @@ -102,7 +102,9 @@ You may obtain a copy of the License at <%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI + + <% if node and node.css then %> <% end -%> @@ -193,7 +195,6 @@ You may obtain a copy of the License at - <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>