From 253f912f174046543380076d735ea0cb14f2cccb Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Wed, 14 Nov 2018 10:45:18 +0100 Subject: luci-app-adblock: consolidate css * fix IE Edge rendering issues * merge external styles in central css Signed-off-by: Dirk Brenken --- .../luasrc/model/cbi/adblock/blacklist_tab.lua | 2 +- .../luasrc/model/cbi/adblock/configuration_tab.lua | 2 +- .../luasrc/model/cbi/adblock/whitelist_tab.lua | 2 +- .../luasrc/view/adblock/adblock_css.htm | 108 +++++++++++++++++++++ .../luasrc/view/adblock/blocklist.htm | 37 +------ .../luasrc/view/adblock/config_css.htm | 13 --- .../luasrc/view/adblock/logread.htm | 16 +-- .../luasrc/view/adblock/runtime.htm | 16 +-- 8 files changed, 116 insertions(+), 80 deletions(-) create mode 100644 applications/luci-app-adblock/luasrc/view/adblock/adblock_css.htm delete mode 100644 applications/luci-app-adblock/luasrc/view/adblock/config_css.htm (limited to 'applications') diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua index b3b3f8d0eb..4d1a9f7e63 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/blacklist_tab.lua @@ -23,7 +23,7 @@ if fs.stat(input).size >= 102400 then end m = SimpleForm("input", nil) -m:append(Template("adblock/config_css")) +m:append(Template("adblock/adblock_css")) m.submit = translate("Save") m.reset = false diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/configuration_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/configuration_tab.lua index 1e98f0204b..1e7eda9032 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/configuration_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/configuration_tab.lua @@ -22,7 +22,7 @@ if fs.stat(input).size >= 102400 then end m = SimpleForm("input", nil) -m:append(Template("adblock/config_css")) +m:append(Template("adblock/adblock_css")) m.submit = translate("Save") m.reset = false diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua index a78d9af4ac..03dcecf1aa 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/whitelist_tab.lua @@ -23,7 +23,7 @@ if fs.stat(input).size >= 102400 then end m = SimpleForm("input", nil) -m:append(Template("adblock/config_css")) +m:append(Template("adblock/adblock_css")) m.submit = translate("Save") m.reset = false diff --git a/applications/luci-app-adblock/luasrc/view/adblock/adblock_css.htm b/applications/luci-app-adblock/luasrc/view/adblock/adblock_css.htm new file mode 100644 index 0000000000..5d95d132df --- /dev/null +++ b/applications/luci-app-adblock/luasrc/view/adblock/adblock_css.htm @@ -0,0 +1,108 @@ + diff --git a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm b/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm index a6f2286513..e145a3b4ef 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm @@ -7,42 +7,7 @@ This is free software, licensed under the Apache License, Version 2.0 local anonclass = (not self.anonymous or self.sectiontitle) and "named" or "anonymous" -%> - +<%+adblock/adblock_css%>
<% if self.title then -%> diff --git a/applications/luci-app-adblock/luasrc/view/adblock/config_css.htm b/applications/luci-app-adblock/luasrc/view/adblock/config_css.htm deleted file mode 100644 index 2233a15e31..0000000000 --- a/applications/luci-app-adblock/luasrc/view/adblock/config_css.htm +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/applications/luci-app-adblock/luasrc/view/adblock/logread.htm b/applications/luci-app-adblock/luasrc/view/adblock/logread.htm index b505233490..7fe254ae80 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/logread.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/logread.htm @@ -4,21 +4,7 @@ This is free software, licensed under the Apache License, Version 2.0 -%> <%+header%> - +<%+adblock/adblock_css%>