From 6e6bac2a4aa52cc3b6ebe2112e15ba274d6a7234 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 4 May 2011 12:56:06 +0000 Subject: [PATCH] libs/web: remove license comments from cbi templates, saves around 50% of their size --- libs/web/luasrc/view/cbi/apply_xhr.htm | 14 -------------- libs/web/luasrc/view/cbi/browser.htm | 19 +------------------ libs/web/luasrc/view/cbi/button.htm | 14 -------------- libs/web/luasrc/view/cbi/cell_valuefooter.htm | 16 +--------------- libs/web/luasrc/view/cbi/cell_valueheader.htm | 15 --------------- libs/web/luasrc/view/cbi/compound.htm | 15 +-------------- libs/web/luasrc/view/cbi/delegator.htm | 15 +-------------- libs/web/luasrc/view/cbi/dvalue.htm | 15 --------------- libs/web/luasrc/view/cbi/dynlist.htm | 14 -------------- libs/web/luasrc/view/cbi/filebrowser.htm | 15 --------------- .../luasrc/view/cbi/firewall_zoneforwards.htm | 14 -------------- .../web/luasrc/view/cbi/firewall_zonelist.htm | 13 ------------- libs/web/luasrc/view/cbi/footer.htm | 14 -------------- libs/web/luasrc/view/cbi/full_valuefooter.htm | 15 --------------- libs/web/luasrc/view/cbi/full_valueheader.htm | 15 --------------- libs/web/luasrc/view/cbi/fvalue.htm | 14 -------------- libs/web/luasrc/view/cbi/header.htm | 15 --------------- libs/web/luasrc/view/cbi/lvalue.htm | 14 -------------- libs/web/luasrc/view/cbi/map.htm | 15 --------------- libs/web/luasrc/view/cbi/mvalue.htm | 18 +----------------- .../web/luasrc/view/cbi/network_ifacelist.htm | 13 ------------- libs/web/luasrc/view/cbi/network_netinfo.htm | 13 ------------- libs/web/luasrc/view/cbi/network_netlist.htm | 13 ------------- libs/web/luasrc/view/cbi/nsection.htm | 15 --------------- libs/web/luasrc/view/cbi/nullsection.htm | 14 -------------- libs/web/luasrc/view/cbi/simpleform.htm | 14 -------------- libs/web/luasrc/view/cbi/tabcontainer.htm | 14 -------------- libs/web/luasrc/view/cbi/tabmenu.htm | 14 -------------- libs/web/luasrc/view/cbi/tblsection.htm | 14 -------------- libs/web/luasrc/view/cbi/tsection.htm | 15 --------------- libs/web/luasrc/view/cbi/tvalue.htm | 14 -------------- libs/web/luasrc/view/cbi/ucisection.htm | 15 --------------- libs/web/luasrc/view/cbi/upload.htm | 15 --------------- libs/web/luasrc/view/cbi/value.htm | 14 -------------- libs/web/luasrc/view/cbi/valuefooter.htm | 15 --------------- libs/web/luasrc/view/cbi/valueheader.htm | 15 --------------- 36 files changed, 5 insertions(+), 521 deletions(-) diff --git a/libs/web/luasrc/view/cbi/apply_xhr.htm b/libs/web/luasrc/view/cbi/apply_xhr.htm index 8598dfe00..78df97e93 100644 --- a/libs/web/luasrc/view/cbi/apply_xhr.htm +++ b/libs/web/luasrc/view/cbi/apply_xhr.htm @@ -1,17 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2010 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - <% export("cbi_apply_xhr", function(id, configs, redirect) -%>
<%:Applying changes%> diff --git a/libs/web/luasrc/view/cbi/browser.htm b/libs/web/luasrc/view/cbi/browser.htm index 08df483b5..e4a4077d5 100644 --- a/libs/web/luasrc/view/cbi/browser.htm +++ b/libs/web/luasrc/view/cbi/browser.htm @@ -1,21 +1,4 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - -<% - local v = self:cfgvalue(section) --%> +<% local v = self:cfgvalue(section) -%> <%+cbi/valueheader%> /> -<%- end %> \ No newline at end of file +<%- end %> diff --git a/libs/web/luasrc/view/cbi/cell_valueheader.htm b/libs/web/luasrc/view/cbi/cell_valueheader.htm index 0f24f1f76..9e2e145dd 100644 --- a/libs/web/luasrc/view/cbi/cell_valueheader.htm +++ b/libs/web/luasrc/view/cbi/cell_valueheader.htm @@ -1,17 +1,2 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> -
"> diff --git a/libs/web/luasrc/view/cbi/compound.htm b/libs/web/luasrc/view/cbi/compound.htm index fbd5a0a07..12d02bb1d 100644 --- a/libs/web/luasrc/view/cbi/compound.htm +++ b/libs/web/luasrc/view/cbi/compound.htm @@ -1,14 +1 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2009 Steven Barth - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> -<%- self:render_children() %> \ No newline at end of file +<%- self:render_children() %> diff --git a/libs/web/luasrc/view/cbi/delegator.htm b/libs/web/luasrc/view/cbi/delegator.htm index ed7c6b4ea..4fd19265d 100644 --- a/libs/web/luasrc/view/cbi/delegator.htm +++ b/libs/web/luasrc/view/cbi/delegator.htm @@ -1,16 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2009 Steven Barth - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> <%- self.active:render() %>
@@ -34,4 +21,4 @@ $Id$ <% end %> <% end %> -
\ No newline at end of file +
diff --git a/libs/web/luasrc/view/cbi/dvalue.htm b/libs/web/luasrc/view/cbi/dvalue.htm index 0a61dc24a..78e6f323d 100644 --- a/libs/web/luasrc/view/cbi/dvalue.htm +++ b/libs/web/luasrc/view/cbi/dvalue.htm @@ -1,18 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - <%+cbi/valueheader%> <% if self.href then %><% end -%> <% diff --git a/libs/web/luasrc/view/cbi/dynlist.htm b/libs/web/luasrc/view/cbi/dynlist.htm index ac9fe3482..a9e77c7cc 100644 --- a/libs/web/luasrc/view/cbi/dynlist.htm +++ b/libs/web/luasrc/view/cbi/dynlist.htm @@ -1,17 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008-2010 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> <%+cbi/valueheader%>
<% diff --git a/libs/web/luasrc/view/cbi/filebrowser.htm b/libs/web/luasrc/view/cbi/filebrowser.htm index 40480ec9d..a79beebba 100644 --- a/libs/web/luasrc/view/cbi/filebrowser.htm +++ b/libs/web/luasrc/view/cbi/filebrowser.htm @@ -1,18 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - diff --git a/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm b/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm index c032a683e..debfddcc2 100644 --- a/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm +++ b/libs/web/luasrc/view/cbi/firewall_zoneforwards.htm @@ -1,17 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2009 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id: firewall_zonelist.htm 5651 2009-12-26 00:09:47Z jow $ - --%> - <%+cbi/valueheader%> <%- diff --git a/libs/web/luasrc/view/cbi/firewall_zonelist.htm b/libs/web/luasrc/view/cbi/firewall_zonelist.htm index 3e066383a..ee38cadbe 100644 --- a/libs/web/luasrc/view/cbi/firewall_zonelist.htm +++ b/libs/web/luasrc/view/cbi/firewall_zonelist.htm @@ -1,16 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2009 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> <%+cbi/valueheader%> <%- diff --git a/libs/web/luasrc/view/cbi/footer.htm b/libs/web/luasrc/view/cbi/footer.htm index eb79f2419..ef6776114 100644 --- a/libs/web/luasrc/view/cbi/footer.htm +++ b/libs/web/luasrc/view/cbi/footer.htm @@ -1,17 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> <%- if pageaction then -%>
<% if redirect then %> diff --git a/libs/web/luasrc/view/cbi/full_valuefooter.htm b/libs/web/luasrc/view/cbi/full_valuefooter.htm index 18b2f2d76..4876fbcc9 100644 --- a/libs/web/luasrc/view/cbi/full_valuefooter.htm +++ b/libs/web/luasrc/view/cbi/full_valuefooter.htm @@ -1,18 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> - <% if self.description and #self.description > 0 then -%> <% if not luci.util.instanceof(self, luci.cbi.DynamicList) and (not luci.util.instanceof(self, luci.cbi.Flag) or self.orientation == "horizontal") then -%>
diff --git a/libs/web/luasrc/view/cbi/full_valueheader.htm b/libs/web/luasrc/view/cbi/full_valueheader.htm index ecd401498..e3711f027 100644 --- a/libs/web/luasrc/view/cbi/full_valueheader.htm +++ b/libs/web/luasrc/view/cbi/full_valueheader.htm @@ -1,18 +1,3 @@ -<%# -LuCI - Lua Configuration Interface -Copyright 2008 Steven Barth -Copyright 2008 Jo-Philipp Wich - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -$Id$ - --%> -
"> <%- if self.title and #self.title > 0 then -%>