From: Dirk Brenken Date: Wed, 14 Nov 2018 09:45:18 +0000 (+0100) Subject: luci-app-adblock: consolidate css X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2283%2Fhead;p=oweals%2Fluci.git luci-app-adblock: consolidate css * fix IE Edge rendering issues * merge external styles in central css Signed-off-by: Dirk Brenken --- 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 b3b3f8d0e..4d1a9f7e6 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 1e98f0204..1e7eda903 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 a78d9af4a..03dcecf1a 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 000000000..5d95d132d --- /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 a6f228651..e145a3b4e 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 2233a15e3..000000000 --- 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 b50523349..7fe254ae8 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%>