X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f644e242ef37c911ad3dc25aca8135c339de349..42c20b25e1325124b88e3b9b285544dc41122b56:/apps/workbench/app/views/repositories/_show_help.html.erb diff --git a/apps/workbench/app/views/repositories/_show_help.html.erb b/apps/workbench/app/views/repositories/_show_help.html.erb index 7980738b55..4a7b454911 100644 --- a/apps/workbench/app/views/repositories/_show_help.html.erb +++ b/apps/workbench/app/views/repositories/_show_help.html.erb @@ -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 %>

Sample git quick start: @@ -22,10 +28,10 @@ git push

See also: <%= link_to raw('Arvados Docs → User Guide → 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 → User Guide → Writing a Crunch Script'), - "#{Rails.configuration.arvados_docsite}/user/tutorials/tutorial-firstscript.html", + "#{Rails.configuration.Workbench.ArvadosDocsite}/user/tutorials/tutorial-firstscript.html", target: "_blank"%>.