2014-01-21 04:51:49 +00:00
|
|
|
= form_tag ssh_keys_path, id: 'ssh_keys_form' do
|
2013-03-01 11:33:02 +00:00
|
|
|
= hidden_field_tag "_method", "post"
|
2014-01-21 04:51:49 +00:00
|
|
|
%table.tablesorter{cellpadding: "0", cellspacing: "0"}
|
2013-03-01 11:33:02 +00:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= title t('ssh_keys')
|
2014-01-21 04:51:49 +00:00
|
|
|
%th{colspan: "2"}= t 'layout.delete'
|
2013-03-01 11:33:02 +00:00
|
|
|
%tbody
|
|
|
|
- @ssh_keys.each do |key|
|
|
|
|
%tr
|
|
|
|
%td="#{key.name} (#{key.fingerprint})"
|
2014-03-14 21:55:28 +00:00
|
|
|
%td= link_to image_tag('x.png'), ssh_key_path(key), method: :delete, data: { confirm: t('layout.confirm') }
|
2013-03-01 11:33:02 +00:00
|
|
|
.both
|
|
|
|
|
|
|
|
%h3.fix.bpadding10= t 'add_key'
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
= form_for SshKey.new, url: ssh_keys_path, html: {class: :form} do |f|
|
2013-03-01 11:33:02 +00:00
|
|
|
.leftlist= f.label :name, t('activerecord.attributes.ssh_key.name')
|
|
|
|
.rightlist= f.text_field :name
|
|
|
|
.both
|
|
|
|
.leftlist= f.label :key, t('activerecord.attributes.ssh_key.key')
|
|
|
|
.rightlist= f.text_area :key
|
|
|
|
%br
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.submit t('layout.add'), data: {'disable-with' => t('layout.processing')}
|
2013-03-01 11:33:02 +00:00
|
|
|
|
|
|
|
- content_for :sidebar, render('sidebar')
|