summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-material/luasrc
diff options
context:
space:
mode:
authorLutty Yang <lutty@wcan.in>2015-09-19 17:22:54 +0800
committerLutty Yang <lutty@wcan.in>2015-09-19 17:22:54 +0800
commitfea55f75c75859856cc607fe619449a8c549f180 (patch)
tree980678602af01cc478d9c6266b487b3ce7df25d4 /themes/luci-theme-material/luasrc
parentcf0623f4f527bd315f164bb51b949e88e00e93d7 (diff)
luci-theme-material: add some new features and fix some bugs
add footer and loading animation and auto focus switches compact Fonts Signed-off-by: Lutty Yang <lutty@wcan.in>
Diffstat (limited to 'themes/luci-theme-material/luasrc')
-rwxr-xr-xthemes/luci-theme-material/luasrc/view/themes/material/footer.htm18
-rwxr-xr-xthemes/luci-theme-material/luasrc/view/themes/material/header.htm3
2 files changed, 12 insertions, 9 deletions
diff --git a/themes/luci-theme-material/luasrc/view/themes/material/footer.htm b/themes/luci-theme-material/luasrc/view/themes/material/footer.htm
index 5966152132..5cb74ce1e4 100755
--- a/themes/luci-theme-material/luasrc/view/themes/material/footer.htm
+++ b/themes/luci-theme-material/luasrc/view/themes/material/footer.htm
@@ -26,16 +26,18 @@
local tree = disp.node()
local categories = disp.node_childs(tree)
%>
+ </div>
+ <footer class="mobile-hide">
+ <a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> /
+ <a href="https://openwrt.org/"><%= ver.distversion %></a>
<% if #categories > 1 then %>
- <footer>
- <ul class="breadcrumb pull-right" id="modemenu">
- <% for i, r in ipairs(categories) do %>
- <li<% if request[1] == r then %> class="active"<%end%>><a href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a> <span class="divider">|</span></li>
- <% end %>
- </ul>
- </footer>
+ <ul class="breadcrumb pull-right" id="modemenu">
+ <% for i, r in ipairs(categories) do %>
+ <li<% if request[1] == r then %> class="active"<%end%>><a href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a> <span class="divider">|</span></li>
+ <% end %>
+ </ul>
<% end %>
- </div>
+ </footer>
</div>
</div>
diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
index 494cfe39e8..f96653a9c0 100755
--- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm
+++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
@@ -109,7 +109,7 @@
<head>
<meta charset="utf-8">
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
+ <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta name="format-detection" content="telephone=no, email=no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
@@ -166,6 +166,7 @@
</header>
<div class="main">
+ <div class="loading"><span>Loading...</span></div>
<div class="main-left">
<ul class="nav">
<%-