From 4654ba92c3999d84b08211f05d2ccb5ea9da731b Mon Sep 17 00:00:00 2001 From: Sven Roederer Date: Sun, 3 Feb 2019 14:13:35 +0100 Subject: treewide: move freifunk-related packages to separate repo Even Freifunk was one of the major factory to create the LuCI-system, it's now only a very small part of LuCI. LuCI has become a much bigger thing and it seems that it's time to move the packages only relating to Freifunk into it's own feed. On the mailinglist it was discussed [1] and a repo below the general Freifunk team on github was created. This commit removes all packages that will be hosted in the new repo [2] 1 - http://lists.freifunk.net/pipermail/wlannews-freifunk.net/2019-February/004818.html 2 - https://github.com/freifunk/openwrt-packages Signed-off-by: Sven Roederer --- .../luasrc/view/themes/freifunk-generic/footer.htm | 30 --- .../luasrc/view/themes/freifunk-generic/header.htm | 224 --------------------- 2 files changed, 254 deletions(-) delete mode 100644 themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm delete mode 100644 themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm (limited to 'themes/luci-theme-freifunk-generic/luasrc') diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm deleted file mode 100644 index 4c38821bbd..0000000000 --- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/footer.htm +++ /dev/null @@ -1,30 +0,0 @@ -<%# - Copyright 2008 Steven Barth - Copyright 2008 Jo-Philipp Wich - 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 -%> - - -
-
- - - - - - - diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm deleted file mode 100644 index fa749325f6..0000000000 --- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ /dev/null @@ -1,224 +0,0 @@ -<%# - Copyright 2008 Steven Barth - Copyright 2008-2011 Jo-Philipp Wich - 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 --%> - - - - - - - - - - - -<% if node and node.css then %> -<% end -%> -<% if css then %> -<% end -%> - - - - - -<%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(tostring(node.title)) or '')) %> - LuCI - - -"> - -
- - - -<%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> -
- <%:No password set!%>
- <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%> -
-<%- end -%> - - - - - -<%- - local function submenu(prefix, node) - local childs = disp.node_childs(node) - if #childs > 0 then -%> - -<% - end - end -%> - - -
-<% if category ~= "freifunk" and category ~= "splash" then %> - -<% end %> -- cgit v1.2.3