Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / repositories / _show_help.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <%
6     filters = @filters + [["owner_uuid", "=", current_user.uuid]]
7     example = Repository.all.order("name ASC").filter(filters).limit(1).results.first
8     example = Repository.all.order("name ASC").limit(1).results.first if !example
9 %>
10
11 <% if example %>
12
13 <p>
14 Sample git quick start:
15 </p>
16
17 <pre>
18 git clone <%= example.push_url %> <%= example.name unless example.push_url.match(/:(\S+)\.git$/).andand[1] == example.name %>
19 cd <%= example.name %>
20 # edit files
21 git add the/files/you/changed
22 git commit
23 git push
24 </pre>
25
26 <% end %>
27
28 <p>
29   See also:
30   <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; SSH access'),
31   "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
32       target: "_blank"%> and 
33   <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; Writing a Crunch
34   Script'),
35   "#{Rails.configuration.arvados_docsite}/user/tutorials/tutorial-firstscript.html",
36   target: "_blank"%>.
37 </p>