Floated Dax to the left instead of the right.
authorPeter Amstutz <peter.amstutz@clinicalfuture.com>
Fri, 27 Dec 2013 13:53:10 +0000 (08:53 -0500)
committerPeter Amstutz <peter.amstutz@clinicalfuture.com>
Fri, 27 Dec 2013 13:53:10 +0000 (08:53 -0500)
apps/workbench/app/views/users/home.html.erb
apps/workbench/app/views/users/welcome.html.erb

index 8a211c848557c80f6b70f07ed5a66debf31cefb2..7fa729f48944cf960f7551e04290827ce3bd7cd0 100644 (file)
 <% end %>
 
 <% if current_user.andand.is_active %>
+
+<% if @my_ssh_keys.count == 0%>
+  <div class="alert alert-block alert-info row-fluid">
+    <button type="button" class="close" data-dismiss="alert">&times;</button>
+    <div class="span6">
+    <p>I noticed that you have not yet set up an SSH public key for use with Arvados.  
+      <%= link_to "Click here to learn how to create a SSH key pair.",
+         "http://doc.arvados.org/user/getting_started/ssh-access.html" %>
+      After you have created an SSH key, you can paste your SSH public key
+      in the text box.
+    </p>
+    </div>
+    <div class="span5">
+      <%= form_for AuthorizedKey.new do |f| %>
+       <%= hidden_field_tag :return_to, request.original_url %>
+       <%= f.text_area :public_key, cols: 40, rows: 5, value: "Put your public key here" %>
+       <%= f.submit :Save %>
+      <% end %>
+    </div>
+  </div>
+<% end %>
+
 <div class="row-fluid">
   <div class="col span12">
     <div class="clearfix">
 </div>
 
 <% elsif current_user %>
-  <%= image_tag "dax.png", style: "float: right; max-width: 25%; margin-left: 2em" %>
+  <%= image_tag "dax.png", style: "float: left; max-width: 25%; margin-right: 2em" %>
   <h1>Welcome to Arvados, <%= current_user.first_name %>!</h1>
   <div class="row-fluid">
     <div class="col span8">
index ced69c48e3aed97dfe4c0c27f53745e5a1f6dcee..e11382f8263e6f60aedcf37bb6c035c5b2e98364 100644 (file)
@@ -1,4 +1,4 @@
-<%= image_tag "dax.png", style: "float: right; max-width: 25%; margin-left: 2em" %>
+<%= image_tag "dax.png", style: "float: left; max-width: 25%; margin-right: 2em" %>
 <h1>Hi there!  Please log in to use Arvados Workbench.</h1>
 <div class="row-fluid">
   <div class="col span8" style="margin-top: 1em">