mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-08 11:27:28 +08:00
remove unwanted theme
This commit is contained in:
parent
3324c9af3a
commit
df68c2d252
@ -1,14 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=Freifunk Generic Theme
|
||||
LUCI_DEPENDS:=
|
||||
|
||||
include ../../luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
Binary file not shown.
Before Width: | Height: | Size: 354 B |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 316 B |
@ -1,20 +0,0 @@
|
||||
div.cbi-value-field {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
.cbi-section legend {
|
||||
background-color: #ffffff;
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
table.cbi-section-table td .cbi-input-text,
|
||||
table.cbi-section-table td .cbi-input-select {
|
||||
width: 95% !important;
|
||||
}
|
||||
|
||||
.cbi-input-user,
|
||||
.cbi-input-password {
|
||||
text-indent: 0 !important;
|
||||
padding-left: 1.5em !important;
|
||||
width: 18.5em !important;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 4.6 KiB |
@ -1,59 +0,0 @@
|
||||
#header{
|
||||
padding-left:0px !important;
|
||||
padding-bottom:24px;
|
||||
}
|
||||
|
||||
.header_left{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#mainlogo {
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-left:0px !important;
|
||||
}
|
||||
|
||||
#maincontent{
|
||||
font-size:1.2em;
|
||||
line-height:1.5em;
|
||||
}
|
||||
|
||||
input[type=submit],
|
||||
.cbi-button,
|
||||
.cbi-button-reset,
|
||||
.cbi-button-save{
|
||||
display:inline !important;
|
||||
float:none !important;
|
||||
padding:10px 30px !important;
|
||||
margin: 10px 10px 10px 0 !important;
|
||||
}
|
||||
|
||||
.cbi-input-text,
|
||||
.cbi-input-select,
|
||||
.cbi-input-user,
|
||||
.cbi-input-password{
|
||||
display:block !important;
|
||||
margin: 0 !important;
|
||||
padding:0 !important;
|
||||
}
|
||||
|
||||
.cbi-value-field{
|
||||
margin:0 !important;
|
||||
margin-bottom: 1em !important;
|
||||
width:100% !important;
|
||||
}
|
||||
|
||||
.cbi-section legend{
|
||||
white-space:normal !important;
|
||||
}
|
||||
|
||||
.cbi-value-title{
|
||||
font-weight:bold;
|
||||
float:none !important;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width:100%;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
.header_right {
|
||||
display:none;
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
<%#
|
||||
Copyright 2008 Steven Barth <steven@midlink.org>
|
||||
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
|
||||
Licensed to the public under the Apache License 2.0.
|
||||
-%>
|
||||
|
||||
<%
|
||||
local ver = require "luci.version"
|
||||
|
||||
local xtime
|
||||
if exectime then
|
||||
xtime = (string.format("%.2fs", os.clock() - exectime))
|
||||
end
|
||||
%>
|
||||
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div class="push"></div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p class="luci"><a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a></p>
|
||||
<% if xtime then %>
|
||||
<p class="exectime">Script execution time: <%=xtime%></p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,223 +0,0 @@
|
||||
<%#
|
||||
Copyright 2008 Steven Barth <steven@midlink.org>
|
||||
Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
|
||||
Licensed to the public under the Apache License 2.0.
|
||||
-%>
|
||||
|
||||
<%
|
||||
local fs = require "nixio.fs"
|
||||
local sys = require "luci.sys"
|
||||
local util = require "luci.util"
|
||||
local http = require "luci.http"
|
||||
local disp = require "luci.dispatcher"
|
||||
local version = require "luci.version"
|
||||
|
||||
local sysinfo = util.ubus("system", "info") or { }
|
||||
local loadinfo = sysinfo.load or { 0, 0, 0 }
|
||||
local boardinfo = util.ubus("system", "board") or { }
|
||||
|
||||
local request = disp.context.path
|
||||
local category = request[1]
|
||||
local cattree = category and disp.node(category)
|
||||
|
||||
local tree = disp.node()
|
||||
local node = disp.context.dispatched
|
||||
|
||||
local categories = disp.node_childs(tree)
|
||||
|
||||
local c = tree
|
||||
local i, r
|
||||
|
||||
-- tag all nodes leading to this page
|
||||
for i, r in ipairs(request) do
|
||||
if c.nodes and c.nodes[r] then
|
||||
c = c.nodes[r]
|
||||
c._menu_selected = true
|
||||
end
|
||||
end
|
||||
|
||||
local uci = require "luci.model.uci".cursor()
|
||||
local ff = uci:get("freifunk", "community", "name") or ""
|
||||
local co = "profile_" .. ff
|
||||
local community = uci:get_first(co, "community", "name") or "Freifunk"
|
||||
local hp = uci:get_first(co, "community", "homepage") or "http://www.freifunk.net"
|
||||
local logo = "/luci-static/freifunk-generic/logo.jpg"
|
||||
local banner = false
|
||||
local show_comm = true
|
||||
|
||||
local file
|
||||
for file in fs.glob("/www/luci-static/resources/custom_logo.*") do
|
||||
logo = string.gsub(file, "/www", "")
|
||||
break
|
||||
end
|
||||
|
||||
for file in fs.glob("/www/luci-static/resources/custom_logo_only.*") do
|
||||
logo = string.gsub(file, "/www", "")
|
||||
show_comm = false
|
||||
break
|
||||
end
|
||||
|
||||
for file in fs.glob("/www/luci-static/resources/custom_header.*") do
|
||||
logo = string.gsub(file, "/www", "")
|
||||
show_comm = false
|
||||
banner = true
|
||||
end
|
||||
-%>
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=luci.i18n.context.lang%>" lang="<%=luci.i18n.context.lang%>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
|
||||
<link rel="stylesheet" media="only screen and (max-device-width: 854px)" href="<%=media%>/mobile.css" type="text/css" />
|
||||
<link rel="stylesheet" media="only screen and (max-width: 854px)" href="<%=media%>/smallscreen.css" type="text/css" />
|
||||
<link rel="stylesheet" media="handheld" href="<%=media%>/mobile.css" type="text/css" />
|
||||
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie7.css" /><![endif]-->
|
||||
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
|
||||
<% end -%>
|
||||
<% if css then %><style title="text/css">
|
||||
<%= css %>
|
||||
</style>
|
||||
<% end -%>
|
||||
<meta name="viewport" content="initial-scale=1.0" />
|
||||
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
||||
|
||||
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(tostring(node.title)) or '')) %> - LuCI</title>
|
||||
</head>
|
||||
|
||||
<body class="lang_<%=luci.i18n.context.lang%>">
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<div class="warning"><div style="background-color: #cccccc;padding: 2px 10px 2px 10px">
|
||||
<%: Your Internet Explorer is too old to display this page correctly. Please upgrade it to at least version 7 or use another browser like Firefox, Opera or Safari.%>
|
||||
</div></div>
|
||||
<![endif]-->
|
||||
|
||||
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
|
||||
<div class="warning">
|
||||
<strong><%:No password set!%></strong><br />
|
||||
<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>
|
||||
</div>
|
||||
<%- end -%>
|
||||
|
||||
<p class="skiplink">
|
||||
<span id="skiplink1"><a href="#navigation"><%:Skip to navigation%></a></span>
|
||||
<span id="skiplink2"><a href="#content"><%:Skip to content%></a></span>
|
||||
</p>
|
||||
|
||||
<div id="header">
|
||||
<%if banner then%>
|
||||
<div class="header_banner">
|
||||
<a href="<%=hp%>"><img src="<%=logo%>" alt="Header" /></a>
|
||||
</div>
|
||||
<%else%>
|
||||
<div class="header_left">
|
||||
<a href="<%=hp%>"><img src="<%=logo%>" id="mainlogo" alt="Logo" /></a>
|
||||
<%if show_comm then%>
|
||||
<a href="<%=hp%>"><%=community%></a>
|
||||
<br/>
|
||||
<%end%>
|
||||
</div>
|
||||
<div class="header_right">
|
||||
<%=version.distversion%><br />
|
||||
<%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%><br />
|
||||
<%:Hostname%>: <%=boardinfo.hostname or "?"%><br />
|
||||
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
|
||||
<%:Auto Refresh%>:
|
||||
<span id="xhr_poll_status_on"><%:on%></span>
|
||||
<span id="xhr_poll_status_off" style="display:none"><%:off%></span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<%end%>
|
||||
</div>
|
||||
|
||||
<%-
|
||||
local function submenu(prefix, node)
|
||||
local childs = disp.node_childs(node)
|
||||
if #childs > 0 then
|
||||
%>
|
||||
<ul id="submenu_<%=string.gsub(string.gsub(prefix, "/", "_"), "^_(.-)_$", "%1")%>">
|
||||
<%-
|
||||
for i, r in ipairs(childs) do
|
||||
local nnode = node.nodes[r]
|
||||
local href = controller .. prefix .. r .. "/" ..
|
||||
(nnode.query and http.build_querystring(nnode.query) or "")
|
||||
%>
|
||||
<li>
|
||||
<a<%=ifattr(nnode._menu_selected, "class", "active")%> href="<%=luci.util.pcdata(href)%>"><%=translate(nnode.title)%></a>
|
||||
<%- submenu(prefix .. r .. "/", nnode) %>
|
||||
</li>
|
||||
<%-
|
||||
end
|
||||
%>
|
||||
</ul>
|
||||
<%
|
||||
end
|
||||
end
|
||||
%>
|
||||
|
||||
<div id="menubar">
|
||||
<h2 class="navigation"><a id="navigation" name="navigation"><%:Navigation%></a></h2>
|
||||
<ul id="mainmenu" class="dropdowns">
|
||||
<%
|
||||
local childs = disp.node_childs(cattree)
|
||||
if #childs > 0 then
|
||||
for i, r in ipairs(childs) do
|
||||
local nnode = cattree.nodes[r]
|
||||
local href = controller .. "/" .. category .. "/" .. r ..
|
||||
(nnode.query and http.build_querystring(k.query) or "")
|
||||
%>
|
||||
<li>
|
||||
<a<%=ifattr(nnode._menu_selected, "class", "preactive")%> href="<%=href%>"><%=translate(nnode.title)%></a>
|
||||
<%- submenu("/" .. category .. "/" .. r .. "/", nnode) %>
|
||||
</li>
|
||||
<%
|
||||
end
|
||||
end
|
||||
%>
|
||||
<li></li>
|
||||
</ul>
|
||||
|
||||
<% if #categories > 1 then %>
|
||||
<ul id="modemenu">
|
||||
<% for i, r in ipairs(categories) do %>
|
||||
<li><a<%=ifattr(request[1] == r, "class", "active")%> href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<%
|
||||
if tree.nodes[category] and tree.nodes[category].ucidata then
|
||||
local ucic = 0
|
||||
for i, j in pairs(require("luci.model.uci").cursor():changes()) do
|
||||
for k, l in pairs(j) do
|
||||
for m, n in pairs(l) do
|
||||
ucic = ucic + 1;
|
||||
end
|
||||
end
|
||||
end
|
||||
-%>
|
||||
<div id="savemenu">
|
||||
<% if ucic > 0 then %>
|
||||
<a class="uci_change_indicator warning" href="<%=controller%>/<%=category%>/uci/changes/?redir=<%=http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/"))%>"><%:Unsaved Changes%>: <%=ucic%></a>
|
||||
<% end -%>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="maincontent">
|
||||
<% if category ~= "freifunk" and category ~= "splash" then %>
|
||||
<noscript>
|
||||
<div class="errorbox">
|
||||
<strong><%:JavaScript required!%></strong><br />
|
||||
<%:You must enable JavaScript in your browser or LuCI will not work properly.%>
|
||||
</div>
|
||||
</noscript>
|
||||
<% end %>
|
@ -1,5 +0,0 @@
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic
|
||||
set luci.main.mediaurlbase=/luci-static/freifunk-generic
|
||||
commit luci
|
||||
EOF
|
@ -1,14 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
|
||||
#
|
||||
# This is free software, licensed under the Apache License, Version 2.0 .
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI OpenWrt.org theme
|
||||
LUCI_DEPENDS:=
|
||||
|
||||
include ../../luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
File diff suppressed because it is too large
Load Diff
@ -1,77 +0,0 @@
|
||||
/* obligatory IE6 Voodoo Code */
|
||||
|
||||
* html body {
|
||||
padding-left: 5% !important;
|
||||
}
|
||||
|
||||
* html div#header {
|
||||
margin-left: 100% !important;
|
||||
}
|
||||
|
||||
* html div#menubar {
|
||||
margin-left: -5% !important;
|
||||
width: 105% !important;
|
||||
}
|
||||
|
||||
* html ul.dropdowns li ul {
|
||||
width: 10em;
|
||||
}
|
||||
|
||||
* html ul.dropdowns li li {
|
||||
clear: both;
|
||||
float: left;
|
||||
}
|
||||
|
||||
* html ul.dropdowns li li {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
* html ul.dropdowns li li a {
|
||||
height: 10%;
|
||||
}
|
||||
|
||||
* html div#maincontent {
|
||||
margin-left: 0% !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
* html div.cbi-value-description {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
* html div.cbi-value-field {
|
||||
margin-left: 0 !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
* html .cbi-input-text,
|
||||
* html .cbi-input-user,
|
||||
* html .cbi-input-select,
|
||||
* html .cbi-input-password {
|
||||
width: 50% !important;
|
||||
}
|
||||
|
||||
* html .cbi-input-user,
|
||||
* html .cbi-input-password {
|
||||
text-indent: 0 !important;
|
||||
padding-left: 1.5em !important;
|
||||
}
|
||||
|
||||
* html .cbi-section legend {
|
||||
background-color: #ffffff;
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
* html table.cbi-section-table td .cbi-input-text,
|
||||
* html table.cbi-section-table td .cbi-input-select {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
* html div.cbi-page-actions {
|
||||
text-align: right !important;
|
||||
}
|
||||
|
||||
* html div.cbi-value-field input,
|
||||
* html div.cbi-value-field select {
|
||||
font-size: 90% !important;
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
#tabmenu {
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
ul.tabmenu {
|
||||
zoom: 1;
|
||||
}
|
||||
|
||||
ul.l1 {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
table.cbi-section-table td .cbi-input-text,
|
||||
table.cbi-section-table td .cbi-input-select {
|
||||
width: 95% !important;
|
||||
}
|
||||
|
||||
|
||||
.cbi-input-user,
|
||||
.cbi-input-password {
|
||||
text-indent: 0 !important;
|
||||
padding-left: 1.5em !important;
|
||||
width: 18.5em !important;
|
||||
}
|
||||
|
||||
|
||||
fieldset.cbi-section {
|
||||
position: relative;
|
||||
margin-top: 1em;
|
||||
padding-top: 0.75em;
|
||||
border: 1px solid #CCCCCC;
|
||||
zoom: 1;
|
||||
}
|
||||
|
||||
fieldset.cbi-section legend {
|
||||
position: absolute;
|
||||
top: -0.75em;
|
||||
left: 0.5em;
|
||||
}
|
||||
|
||||
|
||||
ul.cbi-tabmenu {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
ul.cbi-tabmenu li.cbi-tab a {
|
||||
position: static; /* fixes misplaced tab after page load */
|
||||
border-bottom: 1px solid white;
|
||||
}
|
||||
|
||||
|
||||
div.cbi-value {
|
||||
zoom: 1; /* fixes hanging float */
|
||||
}
|
||||
|
||||
div.cbi-value-field {
|
||||
margin-left: 0 !important;
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
fieldset.cbi-section {
|
||||
position: relative;
|
||||
margin-top: 1em;
|
||||
padding-top: 0.75em;
|
||||
border: 1px solid #CCCCCC;
|
||||
}
|
||||
|
||||
fieldset.cbi-section legend {
|
||||
position: absolute;
|
||||
top: -0.75em;
|
||||
left: 0.5em;
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 152 B |
@ -1,16 +0,0 @@
|
||||
<%#
|
||||
Copyright 2008 Steven Barth <steven@midlink.org>
|
||||
Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
|
||||
Licensed to the public under the Apache License 2.0.
|
||||
-%>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="luci">
|
||||
<% local ver = require "luci.version" -%>
|
||||
Powered by <%= ver.luciname %> (<%= ver.luciversion %>)
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
@ -1,185 +0,0 @@
|
||||
<%#
|
||||
Copyright 2008 Steven Barth <steven@midlink.org>
|
||||
Copyright 2008-2010 Jo-Philipp Wich <jow@openwrt.org>
|
||||
Licensed to the public under the Apache License 2.0.
|
||||
-%>
|
||||
|
||||
<%
|
||||
local sys = require "luci.sys"
|
||||
local util = require "luci.util"
|
||||
local http = require "luci.http"
|
||||
local disp = require "luci.dispatcher"
|
||||
local ver = require "luci.version"
|
||||
|
||||
local sysinfo = util.ubus("system", "info") or { }
|
||||
local loadinfo = sysinfo.load or { 0, 0, 0 }
|
||||
local boardinfo = util.ubus("system", "board") or { }
|
||||
|
||||
local request = disp.context.path
|
||||
local request2 = disp.context.request
|
||||
|
||||
local category = request[1]
|
||||
local cattree = category and disp.node(category)
|
||||
|
||||
local leaf = request2[#request2]
|
||||
|
||||
local tree = disp.node()
|
||||
local node = disp.context.dispatched
|
||||
|
||||
local categories = disp.node_childs(tree)
|
||||
|
||||
local c = tree
|
||||
local i, r
|
||||
|
||||
-- tag all nodes leading to this page
|
||||
for i, r in ipairs(request) do
|
||||
if c.nodes and c.nodes[r] then
|
||||
c = c.nodes[r]
|
||||
c._menu_selected = true
|
||||
end
|
||||
end
|
||||
|
||||
http.prepare_content("application/xhtml+xml")
|
||||
|
||||
local function nodeurl(prefix, name, query)
|
||||
local u = url(prefix, name)
|
||||
if query then
|
||||
u = u .. http.build_querystring(query)
|
||||
end
|
||||
return pcdata(u)
|
||||
end
|
||||
|
||||
local function render_menu(prefix, node, level)
|
||||
if not level then
|
||||
level = 1
|
||||
end
|
||||
|
||||
local childs = disp.node_childs(node)
|
||||
if #childs > 0 then
|
||||
write('<div class="tabmenu%d"><ul class="tabmenu l%d">' %{
|
||||
level, level
|
||||
})
|
||||
|
||||
local selected_node
|
||||
local selected_name
|
||||
local i, v
|
||||
|
||||
for i, v in ipairs(childs) do
|
||||
local nnode = node.nodes[v]
|
||||
if nnode._menu_selected then
|
||||
selected_node = nnode
|
||||
selected_name = v
|
||||
end
|
||||
|
||||
write('<li class="tabmenu-item-%s %s"><a href="%s">%s</a></li>' %{
|
||||
v, (nnode._menu_selected or (node.leaf and v == leaf)) and 'active' or '',
|
||||
nodeurl(prefix, v, nnode.query),
|
||||
striptags(translate(nnode.title))
|
||||
})
|
||||
end
|
||||
|
||||
write('</ul><br style="clear:both" />')
|
||||
|
||||
if selected_node then
|
||||
render_menu(prefix .. "/" .. selected_name, selected_node, level + 1)
|
||||
end
|
||||
|
||||
write('</div>')
|
||||
end
|
||||
end
|
||||
|
||||
local function render_changes()
|
||||
if tree.nodes[category] and tree.nodes[category].ucidata then
|
||||
local ucic = 0
|
||||
for i, j in pairs(require("luci.model.uci").cursor():changes()) do
|
||||
for k, l in pairs(j) do
|
||||
for m, n in pairs(l) do
|
||||
ucic = ucic + 1;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if ucic > 0 then
|
||||
write('<div id="savemenu" class="uci_change_indicator"><a class="warning" href="%s?redir=%s">%s: %d</a></div>' %{
|
||||
url(category, 'uci/changes'),
|
||||
http.urlencode(http.formvalue('redir') or table.concat(disp.context.request, "/")),
|
||||
translate('Unsaved Changes'),
|
||||
ucic
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
-%>
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=luci.i18n.context.lang%>" lang="<%=luci.i18n.context.lang%>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
|
||||
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie6.css" /><![endif]-->
|
||||
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie7.css" /><![endif]-->
|
||||
<!--[if IE 8]><link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/ie8.css" /><![endif]-->
|
||||
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
|
||||
<% end -%>
|
||||
<% if css then %><style title="text/css">
|
||||
<%= css %>
|
||||
</style>
|
||||
<% end -%>
|
||||
<script type="text/javascript" src="<%=resource%>/xhr.js"></script>
|
||||
<title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>
|
||||
</head>
|
||||
<body class="lang_<%=luci.i18n.context.lang%>">
|
||||
|
||||
<p class="skiplink">
|
||||
<span id="skiplink1"><a href="#navigation"><%:Skip to navigation%></a></span>
|
||||
<span id="skiplink2"><a href="#content"><%:Skip to content%></a></span>
|
||||
</p>
|
||||
|
||||
<div id="menubar">
|
||||
<h2 class="navigation"><a id="navigation" name="navigation"><%:Navigation%></a></h2>
|
||||
|
||||
<div class="hostinfo">
|
||||
<%=(boardinfo.hostname or "?")%> | <%=ver.distversion%> |
|
||||
<%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%>
|
||||
<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
|
||||
| <%:Auto Refresh%>:
|
||||
<span id="xhr_poll_status_on"><%:on%></span>
|
||||
<span id="xhr_poll_status_off" style="display:none"><%:off%></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<% if #categories > 1 then %>
|
||||
<ul id="modemenu">
|
||||
<% for i, r in ipairs(categories) do %>
|
||||
<li><a<% if request[1] == r then %> class="active"<%end%> href="<%=controller%>/<%=r%>/"><%=striptags(translate(tree.nodes[r].title))%></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% render_changes() %>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="maincontainer">
|
||||
<div id="tabmenu">
|
||||
<% if category then render_menu(category, cattree) end %>
|
||||
</div>
|
||||
|
||||
<div id="maincontent">
|
||||
<noscript>
|
||||
<div class="errorbox">
|
||||
<strong><%:JavaScript required!%></strong><br />
|
||||
<%:You must enable JavaScript in your browser or LuCI will not work properly.%>
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and category ~= "failsafe" then -%>
|
||||
<div class="errorbox">
|
||||
<strong><%:No password set!%></strong><br />
|
||||
<%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%><br />
|
||||
<a href="<%=pcdata(luci.dispatcher.build_url("admin/system/admin"))%>"><%:Go to password configuration...%></a>
|
||||
</div>
|
||||
<%- end -%>
|
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
uci batch <<-EOF
|
||||
set luci.themes.OpenWrt=/luci-static/openwrt.org
|
||||
set luci.main.mediaurlbase=/luci-static/openwrt.org
|
||||
commit luci
|
||||
EOF
|
Loading…
Reference in New Issue
Block a user