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 @@
- Add SSH Key + Add SSH Key
- % if (@$keys > 0) { -
- This is a list of SSH keys associated with your account. Remove any keys that you do not recognize. -
- % for my $key (@$keys) { -
-
-
-
-
- <%= $key->{key} %> -
-
- <%= $key->{hash} %> -
-
- <%= $key->{mtime} %> +
+ % if (@$keys > 0) { +
+ This is a list of SSH keys associated with your account. Remove any keys that you do not recognize. +
+ % for my $key (@$keys) { +
+
+
+
+
+ <%= $key->{key} %> +
+
+ <%= $key->{hash} %> +
+
+ <%= $key->{mtime} %> +
-
- + % } + % } else { +
+ SSH key don't exists.
% } - % } else { +
+ +