diff options
author | Zheng Qian <sotux82@gmail.com> | 2018-11-21 10:48:32 +0800 |
---|---|---|
committer | Zheng Qian <sotux82@gmail.com> | 2018-11-21 14:05:38 +0800 |
commit | 8267a65f093a0c34f605e7cc67dc0a4efd9a785b (patch) | |
tree | 6c82bbcf5d28704142c5a36d8ef51c0694accfd2 /applications/luci-app-aria2/luasrc/view | |
parent | 515562be2744eb402c37665b7a6e6af72430610f (diff) |
luci-app-aria2: add a button to open ariang
Signed-off-by: Zheng Qian <sotux82@gmail.com>
Diffstat (limited to 'applications/luci-app-aria2/luasrc/view')
-rw-r--r-- | applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm index 66db6ce550..34b7b3c641 100644 --- a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm +++ b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm @@ -11,6 +11,9 @@ XHR.poll(5, '<%=luci.dispatcher.build_url("admin/services/aria2/status")%>', nul 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>'; |