diff options
author | Dirk Brenken <dev@brenken.org> | 2021-02-04 16:05:54 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2021-02-04 16:05:54 +0100 |
commit | f89450fd3e5f336397401db2f369ee9bbd587daa (patch) | |
tree | 59514678e3c59d3bc6ec18241e7b48a5f9b91622 /applications/luci-app-banip/luasrc/view/banip/sourcelist.htm | |
parent | 6ae138c2fe3dc13005b3ccdb9e19037f7350aab6 (diff) |
luci-app-banip: sync with banIP 0.7.0
* sync with current banIP release
* move app to client side JS
* tested with all standard themes
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/luasrc/view/banip/sourcelist.htm')
-rw-r--r-- | applications/luci-app-banip/luasrc/view/banip/sourcelist.htm | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm b/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm deleted file mode 100644 index 12240e5ae4..0000000000 --- a/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm +++ /dev/null @@ -1,47 +0,0 @@ -<%# -Copyright 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" --%> - -<%+banip/banip_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("ban_src_cat") then - -%> - <div class="td cbi-value-field"> </div> - <%- end -%> - </div> - <%- end -%> - </div> - </div> -</div> |