ssh plugin i18n

This commit is contained in:
jysperm
2014-10-07 07:30:19 +08:00
parent ca4def68d4
commit 120cf9fb6f
5 changed files with 21 additions and 38 deletions

View File

@@ -1,26 +0,0 @@
## SSH Plugin API
### POST /plugin/ssh/update_password
Request:
{
"password": "123123"
}
No Response.
Exception:
* invalid_password
* not_in_service
### POST /plugin/ssh/kill
Request:
{
"pid": 1234
}
No Response.

View File

@@ -1,4 +1,11 @@
{
"name": "SSH",
"description": "SSH 提供了远程登录服务"
"": "SSH",
"description": "SSH 提供了远程登录服务",
"process": "进程",
"memory": "内存",
"cpu": "CPU",
"kill": "Kill",
"view": {
"update_password": "设置 SSH 密码"
}
}

View File

@@ -1,21 +1,22 @@
header SSH
header= t('plugins.ssh.')
.col-md-6
.panel.panel-warning
.panel-heading
h3.panel-title 设置 SSH 密码
h3.panel-title= t('plugins.ssh.view.update_password')
.panel-body
.input-group.update-password
input.form-control(type='password')
span.input-group-btn
button.btn.btn-default(type='button') 提交
button.btn.btn-default(type='button')= t('common.submit')
.col-md-6
table(style= 'table-layout: fixed;').table.table-hover
thead
tr
td(style= 'width: 250px;') 进程
td 内存
td CPU
td 操作
td(style= 'width: 250px;')= t('plugins.ssh.process')
td= t('plugins.ssh.memory')
td= t('plugins.ssh.cpu')
td= t('common.action')
tbody
for process in plist
tr(data-id= '#{process.pid}')
@@ -23,4 +24,4 @@ header SSH
td #{(process.rss / 1024).toFixed(1)}M
td #{process.cpu_per}%
td
button.btn-kill.btn.btn-danger.btn-xs Kill
button.btn-kill.btn.btn-danger.btn-xs= t('plugins.ssh.kill')