2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Add SSH Keys"
|
2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title Add an SSH Key
|
2013-12-30 19:50:36 -05:00
|
|
|
%p.light
|
2014-05-28 09:58:02 -04:00
|
|
|
Paste your public key here. Read more about how to generate a key on #{link_to "the SSH help page", help_page_path("ssh", "README")}.
|
2012-01-29 16:59:12 -05:00
|
|
|
%hr
|
2011-10-08 17:36:38 -04:00
|
|
|
= render 'form'
|
2012-03-30 11:30:56 -04:00
|
|
|
|
|
|
|
:javascript
|
2014-06-14 10:28:59 -04:00
|
|
|
$('#key_key').on('focusout', function(){
|
2012-03-30 11:30:56 -04:00
|
|
|
var title = $('#key_title'),
|
|
|
|
val = $('#key_key').val(),
|
2015-12-02 08:58:12 -05:00
|
|
|
comment = val.match(/^\S+ \S+ (.+)\n?$/);
|
2012-03-30 11:30:56 -04:00
|
|
|
|
2015-02-05 17:25:40 -05:00
|
|
|
if( comment && comment.length > 1 && title.val() == '' ){
|
2015-12-24 14:08:46 -05:00
|
|
|
$('#key_title').val( comment[1] ).change();
|
2012-03-30 11:30:56 -04:00
|
|
|
}
|
2014-09-30 10:41:48 -04:00
|
|
|
});
|