From 40180a32e2e3c0323edbee33f58fd806698baa73 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 17 Jun 2011 14:20:54 +0000 Subject: [PATCH] luci-0.10: merge r7170 --- modules/admin-full/luasrc/view/admin_system/packages.htm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/admin-full/luasrc/view/admin_system/packages.htm b/modules/admin-full/luasrc/view/admin_system/packages.htm index 854dedfba..51c50500a 100644 --- a/modules/admin-full/luasrc/view/admin_system/packages.htm +++ b/modules/admin-full/luasrc/view/admin_system/packages.htm @@ -37,6 +37,8 @@ local space_used = space_total - space_free local used_perc = math.floor(0.5 + ((space_total > 0) and ((100 / space_total) * space_used) or 100)) local free_byte = space_free * fstat.frsize +local filter = { } + -%> <%+header%>

<%:System%> - <%:Software%>

@@ -103,7 +105,7 @@ local free_byte = space_free * fstat.frsize <%:Package name%> <%:Version%> - <% local empty = true; luci.model.ipkg.list_installed(query, function(n, v, d) empty = false %> + <% local empty = true; luci.model.ipkg.list_installed(query, function(n, v, d) empty = false; filter[n] = true %> <%:Remove%> <%=luci.util.pcdata(n)%> @@ -132,7 +134,7 @@ local free_byte = space_free * fstat.frsize <%:Version%> <%:Description%> - <% local empty = true; luci.model.ipkg.list_all(query, function(n, v, d) empty = false %> + <% local empty = true; luci.model.ipkg.list_all(query, function(n, v, d) if filter[n] then return end; empty = false %> <%:Install%> <%=luci.util.pcdata(n)%> -- 2.25.1