X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0e9e78ad4e32fb3a14c6e83091efdbe96f2f03d6..ee908b109a95ea962425b435a8a317231829b115:/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 50ec8809dc..4a7b454911 100644 --- a/apps/workbench/app/views/repositories/_show_help.html.erb +++ b/apps/workbench/app/views/repositories/_show_help.html.erb @@ -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 %>

Sample git quick start: @@ -18,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"%>.