<%# 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$ -%> <%+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 %>
<%:a_s_packages_ipkg%>
<%:a_s_packages_updatelist%>
<%:a_s_packages_upgrade%>


<%:a_s_packages_installurl%>:


<%:filter%>:


<% for k, pkg in pairs(pkgs) do %> <% end %>
<%:a_s_packages_name%> <%:version%> <%:install%> <%:delete%> <%:descr%>
<%=pkg.Package%> <%=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 %> <%=pkg.Description%>

<%+footer%>