From 6a8ee26207a8d085c91919d4b056bc2fae524069 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sat, 20 Jan 2018 15:42:53 +0200 Subject: luci-app-diag-devinfo: remove from repo Remove luci-app-diag-devinfo as it has been BROKEN since 2015 due to several dependencies to packages in oldpackages or abandoned Signed-off-by: Hannu Nyman --- .../luasrc/view/diag/smapsection.htm | 129 --------------------- .../luasrc/view/diag/smapvalue.htm | 12 -- 2 files changed, 141 deletions(-) delete mode 100644 applications/luci-app-diag-devinfo/luasrc/view/diag/smapsection.htm delete mode 100644 applications/luci-app-diag-devinfo/luasrc/view/diag/smapvalue.htm (limited to 'applications/luci-app-diag-devinfo/luasrc/view') diff --git a/applications/luci-app-diag-devinfo/luasrc/view/diag/smapsection.htm b/applications/luci-app-diag-devinfo/luasrc/view/diag/smapsection.htm deleted file mode 100644 index b9ad8a5b9b..0000000000 --- a/applications/luci-app-diag-devinfo/luasrc/view/diag/smapsection.htm +++ /dev/null @@ -1,129 +0,0 @@ -<%# - Copyright 2009 Daniel Dickinson - Licensed to the public under the Apache License 2.0. --%> - -<%- -local rowcnt = 1 -function rowstyle() - rowcnt = rowcnt + 1 - return (rowcnt % 2) + 1 -end --%> - - -
- <% if self.title and #self.title > 0 then -%> - <%=self.title%> - <%- end %> -
<%=self.description%>
-
- <%- local count = 0 -%> - - - <%- if not self.anonymous then -%> - <%- if self.sectionhead then -%> - - <%- else -%> - - <%- end -%> - <%- end -%> - <%- for i, k in pairs(self.children) do if not k.optional then -%> - - <%- count = count + 1; end; end; if self.extedit or self.addremove then -%> - - <%- count = count + 1; end -%> - - - <%- if not self.anonymous then -%> - <%- if self.sectiondesc then -%> - - <%- else -%> - - <%- end -%> - <%- end -%> - <%- for i, k in pairs(self.children) do if not k.optional then -%> - - <%- end; end; if self.extedit or self.addremove then -%> - - <%- end -%> - - <%- local isempty = true - for i, k in ipairs(self:cfgsections()) do - section = k - isempty = false - scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } - -%> - - <% if not self.anonymous then -%> - - <%- end %> - - <%- for k, node in ipairs(self.children) do -%> - <%- if not node.optional then -%> - <%- nodevalue = node:cfgvalue(section) -%> - <%- if nodevalue and ( nodevalue ~= "" ) and string.find(nodevalue, 'http://', 1, plain) then - node.href = nodevalue - node.template = "diag/smapvalue" - end - -%> - <%- node:render(section, scope or {}) -%> - <%- end -%> - <%- end -%> - - <%- if self.extedit or self.addremove then -%> - - <%- end -%> - - <%- end -%> - - <%- if isempty then -%> - - - - <%- end -%> -
<%=self.sectionhead%>  - <%- if k.titleref then -%><%- end -%> - <%-=k.title-%> - <%- if k.titleref then -%><%- end -%> -  
<%=self.sectiondesc%><%=k.description%>

<%=k%>

- <%- if self.extedit then -%> - - <%=self.extedit:format(section)%> - <%- elseif type(self.extedit) == "function" then -%> - <%=self:extedit(section)%> - <%- end -%> - " title="<%:Edit%>"><%:Edit%> - <%- end; if self.addremove then %> - - <%- end -%> -

<%:This section contains no values yet%>
- - <% if self.error then %> -
-
    <% for _, c in pairs(self.error) do for _, e in ipairs(c) do -%> -
  • <%=luci.util.pcdata(e):gsub("\n","
    ")%>
  • - <%- end end %>
-
- <% end %> - - <%- if self.addremove then -%> - <% if self.template_addremove then include(self.template_addremove) else -%> -
- <% if self.anonymous then %> - - <% else %> - <% if self.invalid_cts then -%>
<% end %> - - - <% if self.invalid_cts then -%> -
<%:Invalid%>
- <%- end %> - <% end %> -
- <%- end %> - <%- end -%> -
-
- diff --git a/applications/luci-app-diag-devinfo/luasrc/view/diag/smapvalue.htm b/applications/luci-app-diag-devinfo/luasrc/view/diag/smapvalue.htm deleted file mode 100644 index 278985c9fb..0000000000 --- a/applications/luci-app-diag-devinfo/luasrc/view/diag/smapvalue.htm +++ /dev/null @@ -1,12 +0,0 @@ -<%# - Copyright 2009 Daniel Dickinson - Licensed to the public under the Apache License 2.0. --%> - -<%+cbi/valueheader%> -<% if self.href then %><% end -%> - <%=luci.util.pcdata(self:cfgvalue(section))%> -<%- if self.href then %><%end%> -  - -<%+cbi/valuefooter%> -- cgit v1.2.3