<%# Copyright 2017-2019 Xingwang Liao Licensed to the public under the MIT License. -%> <% local ipkg = require "luci.model.ipkg" local has_ui = false local uilist = { supported = { ["ariang"] = "AriaNg", ["webui-aria2"] = "WebUI-Aria2", ["yaaw"] = "YAAW" }, installed = {} } for k in pairs(uilist.supported) do if ipkg.installed(k) then uilist.installed[#uilist.installed + 1] = k has_ui = true end end %>

<%:Collecting data...%>

<% if has_ui then %>

<%:Installed web interface: %> <%- for _, v in pairs(uilist.installed) do %> <%- end %>

<% end %>