</div>
<div class="col-sm-6">
<div class="panel-group" id="arv-adv-accordion">
- <% ['SSH Keys'].each do |section| %>
+ <% ['SSH Keys',
+ 'Setting up SSH access'].each do |section| %>
<% section_id = section.gsub(" ","_").downcase %>
<div class="panel panel-default">
<div class="panel-heading">
- <div class="pull-right">
- <%= link_to "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'} %>
- </div>
+ <% if section_id == 'ssh_keys' %>
+ <div class="pull-right">
+ <%= link_to "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'} %>
+ </div>
+ <% end %>
<h4 class="panel-title">
<a data-parent="#arv-adv-accordion" href="#manage_<%=section_id%>">
<%= section %>
--- /dev/null
+<div>
+<p>
+Sample <code>~/.ssh/config</code>:
+</p>
+
+<pre>
+Host *.arvados
+ ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
+<% if @my_vm_logins.andand.first %>
+ User <%= @my_vm_logins[@my_vm_logins.andand.keys.first].andand.first %>
+<% end %>
+</pre>
+
+<p>
+Sample login command:
+</p>
+
+<pre>
+ssh <%= @my_virtual_machines.first.andand.hostname.andand.sub('.'+current_api_host,'') or 'vm-hostname' %>.arvados
+</pre>
+
+<p>
+ See also:
+ <%= link_to raw('Arvados Docs → User Guide → SSH access'),
+ "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
+ target: "_blank"%>.
+</p>
+</div>
<div>
-<h4>Add / Delete SSH Keys</h4>
<% if !@my_ssh_keys.any? %>
<p> You have not yet set up an SSH public key for use with Arvados. </p>
<p> <%= link_to "Click here to learn about SSH keys in Arvados.",
</table>
<% end %>
</div>
-
-<hr>
-
-<div>
-<h4>Setting up SSH access</h4>
-<p>
-Sample <code>~/.ssh/config</code>:
-</p>
-
-<pre>
-Host *.arvados
- ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
-<% if @my_vm_logins.andand.first %>
- User <%= @my_vm_logins[@my_vm_logins.andand.keys.first].andand.first %>
-<% end %>
-</pre>
-
-<p>
-Sample login command:
-</p>
-
-<pre>
-ssh <%= @my_virtual_machines.first.andand.hostname.andand.sub('.'+current_api_host,'') or 'vm-hostname' %>.arvados
-</pre>
-
-<p>
- See also:
- <%= link_to raw('Arvados Docs → User Guide → SSH access'),
- "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
- target: "_blank"%>.
-</p>
-</div>
}
// capture events to enable submit button when applicable
-$input.on('keyup paste mouseleave', function() {
+$input.on('keyup paste mouseleave onblur', function() {
var trigger = false;
var name_value = document.forms["add_new_key_form"]["name"].value;