Wizards that check for uploading collections, running a crunch job,
authorPeter Amstutz <tetron@cosmos>
Fri, 27 Dec 2013 02:06:30 +0000 (21:06 -0500)
committerPeter Amstutz <tetron@cosmos>
Fri, 27 Dec 2013 02:06:30 +0000 (21:06 -0500)
and running a pipeline and link to documentation if the user hasn't
done it yet.

apps/workbench/app/views/users/home.html.erb

index a2299086ec5904e214787bc31c13b9034c3f3ad7..fd49d8e72479c064525e69a436181a5d45880e1a 100644 (file)
 
 <% if current_user.andand.is_active %>
 
-<% if not Job.limit(1).where(created_by: current_user.uuid).count == 0 %>
+<% if Collection.limit(1).where(created_by: current_user.uuid).count == 0 %>
 <div class="alert alert-block alert-info">
   <button type="button" class="close" data-dismiss="alert">&times;</button>
-  <p><% image_tag "dax.png" %> You haven't run a job yet</p>
+  <p><%= image_tag "dax.png", style: "max-width: 5%; margin-right: 1em" %>
+    Hi, I noticed you haven't uploaded a new collection yet. 
+    <%= link_to "Click here to learn how to upload data to Arvados Keep.", "http://doc.arvados.org/user/tutorials/tutorial-keep.html", class: "" %>
+  </p>
+</div>
+
+<% end %>
+
+<% if Job.limit(1).where(created_by: current_user.uuid).count == 0 %>
+<div class="alert alert-block alert-info">
+  <button type="button" class="close" data-dismiss="alert">&times;</button>  
+  <p><%= image_tag "dax.png", style: "max-width: 5%; margin-right: 1em" %>
+    Hi, I noticed you haven't run a job yet. 
+    <%= link_to "Click here to learn how to run an Arvados Crunch job.", "http://doc.arvados.org/user/tutorials/tutorial-job1.html", class: "" %>
+  </p>
 </div>
 <% end %>
 
-<% if not PipelineInstance.limit(1).where(created_by: current_user.uuid).count == 0 %>
+<% if PipelineInstance.limit(1).where(created_by: current_user.uuid).count == 0 %>
 <div class="alert alert-block alert-info">
   <button type="button" class="close" data-dismiss="alert">&times;</button>
-  <p>You haven't run a pipeline yet</p>
+  <p><%= image_tag "dax.png", style: "max-width: 5%; margin-right: 1em" %>
+    Hi, I noticed you haven't run a pipeline yet.  
+    <%= link_to "Click here to learn how to run an Arvados Crunch pipeline.", "http://doc.arvados.org/user/tutorials/tutorial-new-pipeline.html", class: "" %>
+  </p>
 </div>
 <% end %>