luci-app-alist: Consistent Service state with other Luci

This commit is contained in:
sbwml 2022-03-04 05:05:36 +08:00
parent 51c1cac2ae
commit 0030bc0f24
2 changed files with 2 additions and 6 deletions

View File

@ -7,8 +7,7 @@
{
if (st.running)
{
tb.innerHTML = '<em style=\"color:green\"><b><%:The Alist service is running.%></b></em>'
+ "<br/><br/><input class=\"btn cbi-button cbi-button-apply\" type=\"button\" value=\" <%:Click to open Alist%> \" onclick=\"window.open('http://" + window.location.hostname + ":" + st.port + "/')\"/>";
tb.innerHTML = '<em style=\"color:green\"><b><%:The Alist service is running.%></b></em>' + "<input class=\"cbi-button-reload mar-10\" type=\"button\" value=\" <%:Click to open Alist%> \" onclick=\"window.open('http://" + window.location.hostname + ":" + st.port + "/')\"/>";
}
else
{
@ -19,8 +18,8 @@
);
//]]></script>
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
<fieldset class="cbi-section">
<legend><%:Alist Status%></legend>
<p id="alist_status">
<em><b><%:Collecting data...%></b></em>
</p>

View File

@ -34,9 +34,6 @@ msgstr "Alist 服务已启动"
msgid "The Alist service is not running."
msgstr "Alist 服务未启动"
msgid "Alist Status"
msgstr "Alist 服务状态"
msgid "Collecting data..."
msgstr "收集数据..."