3 <h2><%:a_s_packages%></h2>
7 <% if install or remove or update or upgrade then %>
8 <div class="code"><strong><%:status%>:</strong><br />
10 <%:a_s_packages_update%>: <% if update == 0 then %><span class="ok"><%:ok%></span><% else %><span class="error"><%:error%> (<%:code%> <%=update%>)</span><% end %><br />
13 <%:a_s_packages_upgrade%>: <% if upgrade == 0 then %><span class="ok"><%:ok%></span><% else %><span class="error"><%:error%> (<%:code%> <%=upgrade%>)</span><% end %><br />
15 <% if install then for k,v in pairs(install) do %>
16 <%:a_s_packages_install%> '<%=k%>': <% if v == 0 then %><span class="ok"><%:ok%></span><% else %><span class="error"><%:error%> (<%:code%> <%=v%>)</span><% end %><br />
18 <% if remove then for k,v in pairs(remove) do %>
19 <%:a_s_packages_remove%> '<%=k%>': <% if v == 0 then %><span class="ok"><%:ok%></span><% else %><span class="error"><%:error%> (<%:code%> <%=v%>)</span><% end %><br />
26 <a href="<%=controller%>/admin/system/packages/ipkg"><%:a_s_packages_ipkg%></a><br />
27 <a href="<%=controller%>/admin/system/packages?update=1"><%:a_s_packages_updatelist%></a><br />
28 <a href="<%=controller%>/admin/system/packages?upgrade=1"><%:a_s_packages_upgrade%></a>
34 <form method="post" action="<%=controller%>/admin/system/packages">
36 <span class="bold"><%:a_s_packages_installurl%>:</span><br />
37 <input type="text" name="url" size="30" value="" />
38 <input type="submit" name="submit" value="<%:ok%>" />
45 <span class="bold"><%:filter%>:</span>
46 <input type="text" name="query" size="20" value="<%=query%>" />
47 <input type="submit" name="search" value="<%:a_s_packages_search%>" />
48 <input type="submit" name="submit" value="<%:a_s_packages_do%>" />
55 <table style="font-size: 0.8em">
57 <th><%:a_s_packages_name%></th>
63 <% for k, pkg in pairs(pkgs) do %>
65 <td><%=pkg.Package%></td>
66 <td><%=pkg.Version%></td>
67 <td><% if not pkg.Status or not pkg.Status.installed then %><input type="checkbox" name="install.<%=pkg.Package%>" value="1" /><% else %><%:installed%><% end %></td>
68 <td><% if pkg.Status and pkg.Status.installed then %><input type="checkbox" name="remove.<%=pkg.Package%>" value="1" /><% else %><%:notinstalled%><% end %></td>
69 <td><%=pkg.Description%></td>
75 <input type="submit" name="submit" value="<%:a_s_packages_do%>" />