From 74bbae5141ca94a79820e9ada5b6d7843c7ef39a Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 1 Jul 2013 15:08:54 -0400 Subject: [PATCH] add repository usage example and doc link --- .../app/views/repositories/index.html.erb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 apps/workbench/app/views/repositories/index.html.erb diff --git a/apps/workbench/app/views/repositories/index.html.erb b/apps/workbench/app/views/repositories/index.html.erb new file mode 100644 index 0000000000..1872c2363e --- /dev/null +++ b/apps/workbench/app/views/repositories/index.html.erb @@ -0,0 +1,23 @@ +<%= render partial: 'application/index' %> + +<% if (example = @objects.select(&:push_url).first) %> + +

+Sample git quick start: +

+ +
+git clone <%= example.push_url %> <%= example.name unless example.push_url.match(/:(\S+)\.git$/).andand[1] == example.name %>
+cd <%= example.name %>
+# edit files
+git add the/files/you/changed
+git commit
+git push
+
+ +<% end %> + +

+ See also: + <%= link_to raw('Arvados Docs → User Guide → git'), 'http://doc.arvados.org/user/intro-git.html' %>. +

-- 2.30.2