Skip to content

Commit

Permalink
luci-app-alist: Consistent Service state with other Luci
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwml committed Mar 3, 2022
1 parent 51c1cac commit 0030bc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions luci-app-alist/luasrc/view/alist_status.htm
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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>
Expand Down
3 changes: 0 additions & 3 deletions luci-app-alist/po/zh_Hans/alist.po
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ msgstr "Alist 服务已启动"
msgid "The Alist service is not running."
msgstr "Alist 服务未启动"

msgid "Alist Status"
msgstr "Alist 服务状态"

msgid "Collecting data..."
msgstr "收集数据..."

0 comments on commit 0030bc0

Please sign in to comment.