diff --git a/applications/luci-app-ubuntu/luasrc/view/ubuntu/ubuntu.htm b/applications/luci-app-ubuntu/luasrc/view/ubuntu/ubuntu.htm index d6930a0..445f102 100755 --- a/applications/luci-app-ubuntu/luasrc/view/ubuntu/ubuntu.htm +++ b/applications/luci-app-ubuntu/luasrc/view/ubuntu/ubuntu.htm @@ -7,21 +7,23 @@ if (st.docker_start){ if (st.container_install) { if (st.container_running) { - tb.innerHTML += '
<%:The ubuntu service is running.%>'; - + var htmlStr = '
<%:The ubuntu service is running.%>'; + var configs = [ {id: "userName", label: "<%:UserName%>:", value: st.user_name}, {id: "password", label: "<%:Password%>:", value: st.password}, - {id: "localAddress", label: "<%:Local Address%>:", value: st.local_address}, - {id: "publicAddress", label: "<%:Public Address%>:", value: st.public_address}, + {id: "localAddress", label: "<%:LanAddress%>:", value: st.local_address}, + {id: "publicAddress", label: "<%:WanAddress%>:", value: st.public_address}, ]; configs.forEach(function(c){ - tb.innerHTML += ("
" + htmlStr += ("
" + "
"); }); - tb.innerHTML += "

\" onclick=\"open_container('" + st.container_port + "')\" />"; - tb.innerHTML += " \" onclick=\"stop_container('" + st.container_id + "')\" />

"; + htmlStr += "

\" onclick=\"open_container('" + st.container_port + "')\" />"; + htmlStr+= " \" onclick=\"stop_container('" + st.container_id + "')\" />

"; + + tb.innerHTML = htmlStr; } else { tb.innerHTML = '
<%:The ubuntu service is not running.%>' diff --git a/applications/luci-app-ubuntu/po/zh-cn/ubuntu.po b/applications/luci-app-ubuntu/po/zh-cn/ubuntu.po index 027cdf9..fc4ba77 100644 --- a/applications/luci-app-ubuntu/po/zh-cn/ubuntu.po +++ b/applications/luci-app-ubuntu/po/zh-cn/ubuntu.po @@ -55,8 +55,8 @@ msgstr "用户名" msgid "Password" msgstr "密码" -msgid "LocalAddress" +msgid "LanAddress" msgstr "内网地址" -msgid "PublicAddress" +msgid "WanAddress" msgstr "外网地址" \ No newline at end of file