Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / notifications / _ssh_key_notification.html.erb
index 1dedb4dc17ee94f84bd7bc16393472573cc4b7c9..a17a4517e172142355b3600568e739cd26b6e7ca 100644 (file)
@@ -1,20 +1,11 @@
-   <%= image_tag "dax.png", class: "dax" %> 
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
+   <%= image_tag "dax.png", class: "dax" %>
     <div>
-      Hi, I noticed that you have not yet set up an SSH public key for use with Arvados.  
-      <%= link_to "Click here to learn about SSH keys in Arvados.",
-         "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", 
-         style: "font-weight: bold",
-         target: "_blank" %>
-      When you have an SSH key you would like to use, paste the SSH public key
-      in the text box.
+      Hi, I noticed that you have not yet set up an SSH public key for use with Arvados.
+      <%= link_to ssh_keys_user_path(current_user) do %>
+        <b>Click here to set up an SSH public key for use with Arvados.</b>
+      <%end%>
     </div>
-    <%= form_for AuthorizedKey.new, remote: true do |f| %>
-      <div class="row-fluid">
-          <%= hidden_field_tag :return_to, request.original_url %>
-          <%= hidden_field_tag :disable_element, 'input[type=submit]' %>
-          <%= f.text_area :public_key, rows: 4, placeholder: "Paste your public key here", style: "width: 100%" %>
-      </div>
-      <div class="row-fluid" style="padding-top: 0; padding-bottom: 15px">
-          <%= f.submit :Save, value: raw("&check;"), class: "btn btn-primary pull-right" %>
-      </div>
-<% end %>