diff --git a/templates/user-settings/ssh.html.ep b/templates/user-settings/ssh.html.ep index 172022b9..53829264 100644 --- a/templates/user-settings/ssh.html.ep +++ b/templates/user-settings/ssh.html.ep @@ -27,6 +27,21 @@ %> % layout 'common', title => 'Your Profile'; + + %= javascript begin + $(document).ready(function () { + $('#show-add-key-form').on('click', function () { + var display = $('#add-key-form').css('display'); + + if (display === 'block') { + $('#add-key-form').css('display', 'none'); + } + else { + $('#add-key-form').css('display', 'block'); + } + }); + }); + % end %= include '/include/header'; @@ -58,44 +73,71 @@
- % if (@$keys > 0) { -