Arvados-DCO-1.1-Signed-off-by: Radhika Chippada <radhika@curoverse.com>
[arvados.git] / apps / workbench / app / views / repositories / _show_help.html.erb
index 2830da5ae942a5082e8b290302d907ef9cff6618..5904fb29db8a513d05f0d9532cf666b650c1bb49 100644 (file)
@@ -1,4 +1,14 @@
-<% if (example = @objects.select(&:push_url).first) %>
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
+<%
+    filters = @filters + [["owner_uuid", "=", current_user.uuid]]
+    example = Repository.all.order("name ASC").filter(filters).limit(1).results.first
+    example = Repository.all.order("name ASC").limit(1).results.first if !example
+%>
+
+<% if example %>
 
 <p>
 Sample git quick start:
@@ -18,7 +28,7 @@ git push
 <p>
   See also:
   <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; SSH access'),
-  "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access.html",
+  "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
       target: "_blank"%> and 
   <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; Writing a Crunch
   Script'),