Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / repositories / _show_help.html.erb
index 7980738b557d09abaf7f7f24caf553014f3bd845..4a7b45491183a9bec056ded0f3220594f63b5df4 100644 (file)
@@ -2,7 +2,13 @@
 
 SPDX-License-Identifier: AGPL-3.0 %>
 
-<% if (example = @objects.select(&:push_url).first) %>
+<%
+    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:
@@ -22,10 +28,10 @@ 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-unix.html",
-      target: "_blank"%> and 
+  "#{Rails.configuration.Workbench.ArvadosDocsite}/user/getting_started/ssh-access-unix.html",
+      target: "_blank"%> and
   <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; Writing a Crunch
   Script'),
-  "#{Rails.configuration.arvados_docsite}/user/tutorials/tutorial-firstscript.html",
+  "#{Rails.configuration.Workbench.ArvadosDocsite}/user/tutorials/tutorial-firstscript.html",
   target: "_blank"%>.
 </p>