summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2020-03-28 14:35:10 +0100
committerDirk Brenken <dev@brenken.org>2020-03-28 14:35:10 +0100
commit0f18b873d893a30564a2684e0dcc7f4fb68ed296 (patch)
treead80bf79f72e4a9935bcd74266afd4074d038ef9 /applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm
parent0adf93de3b78fae8a19843906852abad6c7855ae (diff)
luci-app-adblock: release 4.0.0
* complete rewrite, migrated to client side JS * tested with mainline 19.07 and current master * tested with latest Firefox & Chrome and all standard themes (not OpenWrt2020!) Pre-tested by many forum users, see here: https://forum.openwrt.org/t/adblock-4-pre-releases/57101 * sync translations Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm')
-rw-r--r--applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm47
1 files changed, 0 insertions, 47 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm b/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm
deleted file mode 100644
index c90afe7687..0000000000
--- a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm
+++ /dev/null
@@ -1,47 +0,0 @@
-<%#
-Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
-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%>
-
-<div class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
- <% if self.title then -%>
- <h3><%=self.title%></h3>
- <%- end %>
- <div class="cbi-section-descr"><%=self.description%></div>
- <div class="cbi-section-node">
- <div class="table cbi-section-table">
- <div class="tr cbi-section-table-titles <%=anonclass%>">
- <%- for i, k in pairs(self.children) do -%>
- <div class="th cbi-section-table-cell">
- <%-=k.title-%>
- </div>
- <%- end -%>
- </div>
- <%- local section, scope, isempty = true
- for i, k in ipairs(self:cfgsections()) do
- section = k
- local sectionname = striptags((type(self.sectiontitle) == "function") and self:sectiontitle(section) or k)
- local sectiontitle = ifattr(sectionname and (not self.anonymous or self.sectiontitle), "data-title", sectionname, true)
- isempty = false
- scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" }
- -%>
- <div class="tr cbi-section-table-row" id="cbi-<%=self.config%>-<%=section%>"<%=sectiontitle%>>
- <%-
- for k, node in ipairs(self.children) do
- node:render(section, scope or {})
- end
- if not scope.cbid:match("adb_src_cat") then
- -%>
- <div class="td cbi-value-field">&#160;</div>
- <%- end -%>
- </div>
- <%- end -%>
- </div>
- </div>
-</div>