<%# 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 rowcnt = 1 function rowstyle() rowcnt = rowcnt + 1 return (rowcnt % 2) + 1 end -%> <%+header%>

<%:system%>

<%:a_s_packages%>


<% if install or remove or update or upgrade then %>
<%:status%>:
<% if update then %> <%:a_s_packages_update%>: <% if update == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=update%>)<% end %>
<% end %> <% if upgrade then%> <%:a_s_packages_upgrade%>: <% if upgrade == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=upgrade%>)<% end %>
<% end %> <% if install then for k,v in pairs(install) do %> <%:a_s_packages_install%> '<%=k%>': <% if v == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=v%>)<% end %>
<% end end %> <% if remove then for k,v in pairs(remove) do %> <%:a_s_packages_remove%> '<%=k%>': <% if v == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=v%>)<% end %>
<% end end %>

<% end %>

<% for k, pkg in pairs(pkgs) do %> <% end %>
<%:a_s_packages_name%> <%:version%> <%:install%> <%:delete%> <%:descr%>
<%=luci.util.pcdata(pkg.Package)%> <%=luci.util.pcdata(pkg.Version)%> <% if not pkg.Status or not pkg.Status.installed then %><% else %><%:installed%><% end %> <% if pkg.Status and pkg.Status.installed then %><% else %><%:notinstalled%><% end %> <%=luci.util.pcdata(pkg.Description)%>

<%+footer%>