luci-app-alist: show manage password in the description
This commit is contained in:
parent
765b725701
commit
fc5e327475
@ -1,6 +1,12 @@
|
|||||||
local m, s
|
local m, s
|
||||||
|
local sys = require "luci.sys"
|
||||||
|
|
||||||
m = Map("alist", translate("Alist"), translate("Alist is an file list program that supports multiple storage. Default password: alist"))
|
if sys.call("pidof alist >/dev/null") == 0 then
|
||||||
|
local password = sys.exec("/usr/bin/alist --conf /etc/alist/config.json -password | awk '{print $3}'")
|
||||||
|
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage.") .. " " .. translate("manage password:") .. "<font color=\"green\">" .. password .. "</font>")
|
||||||
|
else
|
||||||
|
m = Map("alist", translate("Alist"), translate("A file list program that supports multiple storage."))
|
||||||
|
end
|
||||||
|
|
||||||
m:section(SimpleSection).template = "alist_status"
|
m:section(SimpleSection).template = "alist_status"
|
||||||
|
|
||||||
|
@ -7,8 +7,11 @@ msgstr "运行状态"
|
|||||||
msgid "Click to open Alist"
|
msgid "Click to open Alist"
|
||||||
msgstr "点击打开 Alist"
|
msgstr "点击打开 Alist"
|
||||||
|
|
||||||
msgid "Alist is an file list program that supports multiple storage. Default password: alist"
|
msgid "A file list program that supports multiple storage."
|
||||||
msgstr "Alist 是一个支持多存储的文件列表程序。默认密码:alist"
|
msgstr "一款支持多种存储的目录文件列表程序。"
|
||||||
|
|
||||||
|
msgid "manage password:"
|
||||||
|
msgstr "管理密码:"
|
||||||
|
|
||||||
msgid "Global settings"
|
msgid "Global settings"
|
||||||
msgstr "全局设置"
|
msgstr "全局设置"
|
||||||
|
Loading…
Reference in New Issue
Block a user