From 29f7cf16e56c269f45184677dfaa472499622fdb Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Sat, 24 Jan 2015 10:38:54 +0100 Subject: luci-app-privoxy: move from openwrt/packages to openwrt/luci * move from openwrt/packages to openwrt/luci * adaption to new LuCI subdirectory structure * fix error handling * modified version handling * fixed translations Signed-off-by: Christian Schoenebeck --- .../luasrc/view/privoxy/detail_logview.htm | 56 ++++++++++++++++++++++ .../luasrc/view/privoxy/detail_startstop.htm | 49 +++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100755 applications/luci-app-privoxy/luasrc/view/privoxy/detail_logview.htm create mode 100644 applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm (limited to 'applications/luci-app-privoxy/luasrc/view') diff --git a/applications/luci-app-privoxy/luasrc/view/privoxy/detail_logview.htm b/applications/luci-app-privoxy/luasrc/view/privoxy/detail_logview.htm new file mode 100755 index 0000000000..3e190709fb --- /dev/null +++ b/applications/luci-app-privoxy/luasrc/view/privoxy/detail_logview.htm @@ -0,0 +1,56 @@ + + + + +<%+cbi/valueheader%> + +
+ +<% +-- one button on top, one at the buttom +%> + /> + +

+ +<% +-- set a readable style taken from openwrt theme for textarea#syslog +-- in openwrt theme there are problems with a width of 100 so we check for theme and set to lower value +%> + +

+ +<% +-- one button on top, one at the buttom +%> + /> + +<%+cbi/valuefooter%> + diff --git a/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm b/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm new file mode 100644 index 0000000000..b9de8864e4 --- /dev/null +++ b/applications/luci-app-privoxy/luasrc/view/privoxy/detail_startstop.htm @@ -0,0 +1,49 @@ + + + + +<%+cbi/valueheader%> + +<% if self:cfgvalue(section) ~= false then +-- We need to garantie that function cfgvalue run first to set missing parameters +%> + + + " style="font-size: 100%;" type="button" onclick="onclick_startstop(this.id)" + <%= + attr("name", section) .. attr("id", cbid) .. attr("value", self.inputtitle) .. ifattr(self.disabled, "disabled") + %> /> +<% end %> + +<%+cbi/valuefooter%> + -- cgit v1.2.3