luci-app-alist: Consistent Service state with other Luci
This commit is contained in:
parent
51c1cac2ae
commit
0030bc0f24
@ -7,8 +7,7 @@
|
|||||||
{
|
{
|
||||||
if (st.running)
|
if (st.running)
|
||||||
{
|
{
|
||||||
tb.innerHTML = '<em style=\"color:green\"><b><%:The Alist service is running.%></b></em>'
|
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 + "/')\"/>";
|
||||||
+ "<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 + "/')\"/>";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -19,8 +18,8 @@
|
|||||||
);
|
);
|
||||||
//]]></script>
|
//]]></script>
|
||||||
|
|
||||||
|
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
|
||||||
<fieldset class="cbi-section">
|
<fieldset class="cbi-section">
|
||||||
<legend><%:Alist Status%></legend>
|
|
||||||
<p id="alist_status">
|
<p id="alist_status">
|
||||||
<em><b><%:Collecting data...%></b></em>
|
<em><b><%:Collecting data...%></b></em>
|
||||||
</p>
|
</p>
|
||||||
|
@ -34,9 +34,6 @@ msgstr "Alist 服务已启动"
|
|||||||
msgid "The Alist service is not running."
|
msgid "The Alist service is not running."
|
||||||
msgstr "Alist 服务未启动"
|
msgstr "Alist 服务未启动"
|
||||||
|
|
||||||
msgid "Alist Status"
|
|
||||||
msgstr "Alist 服务状态"
|
|
||||||
|
|
||||||
msgid "Collecting data..."
|
msgid "Collecting data..."
|
||||||
msgstr "收集数据..."
|
msgstr "收集数据..."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user