<%= link_to raw(' Add new repository'), "#", {class: 'btn btn-xs btn-primary', 'data-toggle' => "modal", 'data-target' => '#add-repository-modal'} %>

<%= link_to repositories_user_path(current_user) do%> Repositories <%end%>

For more information see <%= link_to raw('Writing a pipeline'), "#{Rails.configuration.arvados_docsite}/user/tutorials/tutorial-firstscript.html", target: "_blank"%>.

<% if !@my_repositories.any? %> You do not seem to have access to any repositories. If you would like to request access, please contact your system admin. <% else %> <% @my_repositories.andand.each do |repo| %> <% writable = @repo_writable[repo.uuid] %> <% end %>
Name Read/Write URL
<%= repo[:name] %> <%= writable ? 'writable' : 'read-only' %> <%= repo.http_fetch_url %>
<%= writable ? repo.push_url : repo.fetch_url %>
<% if writable == 'can_manage' %> <%= link_to "Share", "/repositories/#{repo[:uuid]}#Sharing" %> <% end %>
<% end %>

When you are using an Arvados virtual machine, you should clone the https:// URLs. This will authenticate automatically using your API token.

In order to clone git repositories using SSH, <%= link_to ssh_keys_user_path(current_user) do%> add an SSH key to your account<%end%> and clone the git@ URLs.