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