debian-mirror-gitlab/app/views/profiles/keys/new.html.haml

18 lines
527 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Add SSH Keys"
2014-09-02 18:07:02 +05:30
%h3.page-title Add an SSH Key
%p.light
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")}.
%hr
= render 'form'
:javascript
$('#key_key').on('focusout', function(){
var title = $('#key_title'),
val = $('#key_key').val(),
2015-12-23 02:04:40 +05:30
comment = val.match(/^\S+ \S+ (.+)\n?$/);
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
if( comment && comment.length > 1 && title.val() == '' ){
$('#key_title').val( comment[1] ).change();
2014-09-02 18:07:02 +05:30
}
2015-04-26 12:48:37 +05:30
});