From 55ab4e4ce221091480f8c693ceefb1d0ac32c18f Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Mon, 19 Jan 2015 21:08:03 +0100 Subject: luci-themes: luci.main.mediaurlbase not set correctly Currently by default theme Bootstrap is installed but luci.main.mediaurlbase (it holds the current active theme) still has openwrt.org set. I did not find the mechanism how LuCI starts Bootstrap theme but the installation should set luci.main.mediaurlbase correctly. Signed-off-by: Christian Schoenebeck --- themes/luci-theme-bootstrap/root/etc/uci-defaults/luci-theme-bootstrap | 1 + .../root/etc/uci-defaults/luci-theme-freifunk-bno | 2 +- .../root/etc/uci-defaults/luci-theme-freifunk-generic | 3 ++- themes/luci-theme-openwrt/root/etc/uci-defaults/luci-theme-openwrt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'themes') diff --git a/themes/luci-theme-bootstrap/root/etc/uci-defaults/luci-theme-bootstrap b/themes/luci-theme-bootstrap/root/etc/uci-defaults/luci-theme-bootstrap index ddefd3b04f..09299e0922 100755 --- a/themes/luci-theme-bootstrap/root/etc/uci-defaults/luci-theme-bootstrap +++ b/themes/luci-theme-bootstrap/root/etc/uci-defaults/luci-theme-bootstrap @@ -1,6 +1,7 @@ #!/bin/sh uci batch <<-EOF set luci.themes.Bootstrap=/luci-static/bootstrap + set luci.main.mediaurlbase=/luci-static/bootstrap commit luci EOF exit 0 diff --git a/themes/luci-theme-freifunk-bno/root/etc/uci-defaults/luci-theme-freifunk-bno b/themes/luci-theme-freifunk-bno/root/etc/uci-defaults/luci-theme-freifunk-bno index e5fb8a12dc..a19f2bb412 100755 --- a/themes/luci-theme-freifunk-bno/root/etc/uci-defaults/luci-theme-freifunk-bno +++ b/themes/luci-theme-freifunk-bno/root/etc/uci-defaults/luci-theme-freifunk-bno @@ -1,6 +1,6 @@ #!/bin/sh uci batch <<-EOF set luci.themes.Freifunk_BNO=/luci-static/freifunk-bno + set luci.main.mediaurlbase=/luci-static/freifunk-bno commit luci EOF - diff --git a/themes/luci-theme-freifunk-generic/root/etc/uci-defaults/luci-theme-freifunk-generic b/themes/luci-theme-freifunk-generic/root/etc/uci-defaults/luci-theme-freifunk-generic index 131f54e216..017e7f7bad 100644 --- a/themes/luci-theme-freifunk-generic/root/etc/uci-defaults/luci-theme-freifunk-generic +++ b/themes/luci-theme-freifunk-generic/root/etc/uci-defaults/luci-theme-freifunk-generic @@ -1,4 +1,5 @@ uci batch <<-EOF - set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic + set luci.themes.Freifunk_Generic=/luci-static/freifunk-generic + set luci.main.mediaurlbase=/luci-static/freifunk-generic commit luci EOF diff --git a/themes/luci-theme-openwrt/root/etc/uci-defaults/luci-theme-openwrt b/themes/luci-theme-openwrt/root/etc/uci-defaults/luci-theme-openwrt index d8dea0467e..aa0ba0c231 100755 --- a/themes/luci-theme-openwrt/root/etc/uci-defaults/luci-theme-openwrt +++ b/themes/luci-theme-openwrt/root/etc/uci-defaults/luci-theme-openwrt @@ -1,6 +1,6 @@ #!/bin/sh uci batch <<-EOF set luci.themes.OpenWrt=/luci-static/openwrt.org + set luci.main.mediaurlbase=/luci-static/openwrt.org commit luci EOF - -- cgit v1.2.3 From 8b123df2874a6eb17a6150667ba48247bad847ec Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Thu, 19 Feb 2015 20:20:31 +0100 Subject: themes/freifunk-generic: fix error with version string display in header on BB --- .../luasrc/view/themes/freifunk-generic/header.htm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'themes') 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 index d74916aea1..20a41be855 100644 --- 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 @@ -10,6 +10,7 @@ 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 } @@ -122,7 +123,7 @@ <%end%>
- <%=luci.version.distversion%>
+ <%=version.distversion%>
<%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%>
<%:Hostname%>: <%=boardinfo.hostname or "?"%>