X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/15b37dc4af33f1b5fe3e5ca1773ff7cb53a80607..f91557687f656e11b9ddad08be2243677ebe6cec:/apps/workbench/app/views/users/_manage_account.html.erb?ds=sidebyside diff --git a/apps/workbench/app/views/users/_manage_account.html.erb b/apps/workbench/app/views/users/_manage_account.html.erb index 76a0408e0a..5024fce6d7 100644 --- a/apps/workbench/app/views/users/_manage_account.html.erb +++ b/apps/workbench/app/views/users/_manage_account.html.erb @@ -1,8 +1,7 @@
<% ['Virtual Machines', - 'Repositories', - 'Current Token'].each do |section| %> + 'Repositories'].each do |section| %> <% section_id = section.gsub(" ","_").downcase %>
@@ -23,17 +22,18 @@
- <% ['SSH Keys'].each do |section| %> + <% ['SSH Keys', + 'Current Token'].each do |section| %> <% section_id = section.gsub(" ","_").downcase %>
-
- <%= button_to projects_path(method: 'post'), class: 'btn btn-xs btn-primary' do %> - - Add new SSH key - <% end %> - -
+ <% if section_id == 'ssh_keys' %> +
+ <%= link_to raw('' " Add new SSH key"), add_ssh_key_popup_url, + {class: 'btn btn-xs btn-primary', :remote => true, 'data-toggle' => "modal", + 'data-target' => '#add-ssh-key-modal-window'} %> +
+ <% end %>

<%= section %> @@ -48,4 +48,5 @@

<% end %>
+