Files
RootPanel/plugin/ssh/view/widget.jade
2014-10-07 07:30:19 +08:00

28 lines
925 B
Plaintext

header= t('plugins.ssh.')
.col-md-6
.panel.panel-warning
.panel-heading
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')= t('common.submit')
.col-md-6
table(style= 'table-layout: fixed;').table.table-hover
thead
tr
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}')
td(style= 'white-space: nowrap; overflow: hidden;', title= process.command)= process.command
td #{(process.rss / 1024).toFixed(1)}M
td #{process.cpu_per}%
td
button.btn-kill.btn.btn-danger.btn-xs= t('plugins.ssh.kill')