local status = {
running = (sys.call("pidof aria2c > /dev/null") == 0),
yaaw = ipkg.installed("yaaw"),
- webui = ipkg.installed("webui-aria2")
+ webui = ipkg.installed("webui-aria2"),
+ ariang = (ipkg.installed("ariang") or ipkg.installed("ariang-nginx"))
}
http.prepare_content("application/json")
if (data.webui) {
links += '<input class="cbi-button mar-10" type="button" value="<%:Open WebUI-Aria2%>" onclick="openWebUI(\'webui-aria2\');" />';
}
+ if (data.ariang) {
+ links += '<input class="cbi-button mar-10" type="button" value="<%:Open AriaNg%>" onclick="openWebUI(\'ariang\');" />';
+ }
tb.innerHTML = links;
} else {
tb.innerHTML = '<em><%:The Aria2 service is not running.%></em>';
msgid "Aria2 Settings"
msgstr "Configurações do Aria2"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:74
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:77
msgid "Aria2 Status"
msgstr "Estado do Aria2"
msgid "BitTorrent listen port"
msgstr "Porta de escuta do BitTorrent"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:76
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:79
msgid "Collecting data..."
msgstr "Coletando dados..."
msgid "Off"
msgstr "Desligado"
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:15
+msgid "Open AriaNg"
+msgstr ""
+
#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:12
msgid "Open WebUI-Aria2"
msgstr "Abrir WebUI-Aria2"
msgid "Task Settings"
msgstr "Configurações das tarefas"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:16
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:19
msgid "The Aria2 service is not running."
msgstr "O serviço Aria2 está parado."
msgid "Aria2 Settings"
msgstr "Настройка Aria2"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:74
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:77
msgid "Aria2 Status"
msgstr "Состояние Aria2"
msgid "BitTorrent listen port"
msgstr "Порты BitTorrent-а"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:76
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:79
msgid "Collecting data..."
msgstr "Сбор данных..."
msgid "Off"
msgstr "Выключено"
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:15
+msgid "Open AriaNg"
+msgstr ""
+
#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:12
msgid "Open WebUI-Aria2"
msgstr "Открыть WebUI-Aria2"
msgid "Task Settings"
msgstr "Настройки задач"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:16
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:19
msgid "The Aria2 service is not running."
msgstr "Aria2 сервис не запущен."
msgid "Aria2 Settings"
msgstr "Inställningar för Aria2"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:74
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:77
msgid "Aria2 Status"
msgstr "Status för Aria2"
msgid "BitTorrent listen port"
msgstr "Lyssningsport för BitTorrent"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:76
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:79
msgid "Collecting data..."
msgstr "Samlar in data..."
msgid "Off"
msgstr "Av"
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:15
+msgid "Open AriaNg"
+msgstr ""
+
#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:12
msgid "Open WebUI-Aria2"
msgstr "Öppna WebUI-Aria2"
msgid "Task Settings"
msgstr "Inställningar för uppgifter"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:16
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:19
msgid "The Aria2 service is not running."
msgstr "Aria2-tjänsten körs inte."
msgid "Aria2 Settings"
msgstr ""
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:74
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:77
msgid "Aria2 Status"
msgstr ""
msgid "BitTorrent listen port"
msgstr ""
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:76
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:79
msgid "Collecting data..."
msgstr ""
msgid "Off"
msgstr ""
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:15
+msgid "Open AriaNg"
+msgstr ""
+
#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:12
msgid "Open WebUI-Aria2"
msgstr ""
msgid "Task Settings"
msgstr ""
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:16
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:19
msgid "The Aria2 service is not running."
msgstr ""
msgid "Aria2 Settings"
msgstr "Aria2 配置"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:74
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:77
msgid "Aria2 Status"
msgstr "Aria2 状态"
msgid "BitTorrent listen port"
msgstr "BitTorrent 监听端口"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:76
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:79
msgid "Collecting data..."
msgstr "正在收集数据..."
msgid "Off"
msgstr "关闭"
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:15
+msgid "Open AriaNg"
+msgstr "打开 AriaNg"
+
#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:12
msgid "Open WebUI-Aria2"
msgstr "打开 WebUI-Aria2"
msgid "Task Settings"
msgstr "任务设置"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:16
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:19
msgid "The Aria2 service is not running."
msgstr "Aria2 未运行"
msgid "Aria2 Settings"
msgstr "Aria2 配置"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:74
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:77
msgid "Aria2 Status"
msgstr "Aria2 狀態"
msgid "BitTorrent listen port"
msgstr "BitTorrent 監聽埠"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:76
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:79
msgid "Collecting data..."
msgstr "正在收集資料..."
msgid "Off"
msgstr "關閉"
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:15
+msgid "Open AriaNg"
+msgstr "開啟 AriaNg"
+
#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:12
msgid "Open WebUI-Aria2"
msgstr "開啟 WebUI-Aria2"
msgid "Task Settings"
msgstr "任務設定"
-#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:16
+#: applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm:19
msgid "The Aria2 service is not running."
msgstr "Aria2 未執行"