From b7de5ce7c1ae19cef8c2e2b9603f58fa5111214a Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Mon, 28 Jan 2013 22:49:59 +0000 Subject: [PATCH] themes/bootstrap: Fixes for mobile devices: add initial scale, don't show hostname in header, partly fixes #481 --- themes/bootstrap/htdocs/luci-static/bootstrap/mobile.css | 3 +++ themes/bootstrap/luasrc/view/themes/bootstrap/header.htm | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 themes/bootstrap/htdocs/luci-static/bootstrap/mobile.css 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 -%>
-- 2.30.2