summaryrefslogtreecommitdiffhomepage
path: root/themes/bootstrap/luasrc/view
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2013-01-28 22:49:59 +0000
committerManuel Munz <freifunk@somakoma.de>2013-01-28 22:49:59 +0000
commitb7de5ce7c1ae19cef8c2e2b9603f58fa5111214a (patch)
tree6b6610fe6fadb0cec611127a7839686d67363822 /themes/bootstrap/luasrc/view
parent6bec9b6bcf3906a085e0757c3ab876d300b3b99c (diff)
themes/bootstrap: Fixes for mobile devices: add initial scale, don't show hostname in header, partly fixes #481
Diffstat (limited to 'themes/bootstrap/luasrc/view')
-rw-r--r--themes/bootstrap/luasrc/view/themes/bootstrap/header.htm3
1 files changed, 2 insertions, 1 deletions
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
<meta charset="utf-8">
<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
<!--[if lt IE 9]><script src="<%=media%>/html5.js"></script><![endif]-->
+ <meta name="viewport" content="initial-scale=1.0">
<link rel="stylesheet" href="<%=media%>/cascade.css">
+ <link rel="stylesheet" media="only screen and (max-device-width: 854px)" href="<%=media%>/mobile.css" type="text/css" />
<link rel="shortcut icon" href="<%=media%>/favicon.ico">
<% if node and node.css then %><link rel="stylesheet" href="<%=resource%>/<%=node.css%>">
<% end -%>
@@ -193,7 +195,6 @@ You may obtain a copy of the License at
</div>
</header>
-
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
<div class="container">
<div class="alert-message warning">