X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a789f895a5cdbc2a548787f99197f9861521106b..c8cb8059605b3fa1f58dda40c5af3ad03a3c116e:/apps/workbench/app/views/users/_repositories.html.erb diff --git a/apps/workbench/app/views/users/_repositories.html.erb b/apps/workbench/app/views/users/_repositories.html.erb index d409b8c44b..057b6a2138 100644 --- a/apps/workbench/app/views/users/_repositories.html.erb +++ b/apps/workbench/app/views/users/_repositories.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +
@@ -12,54 +16,56 @@
-
-

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

+
+

+ 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. +

- <% 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] %> + <% 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 %> +
Name Read/Write URL
+ + + + + + + - - - - + + + + - <% end %> - -
- <%= 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 %> - Name URL
- <% end %> -
+ + + <% @my_repositories.andand.each do |repo| %> + + + <%= render :partial => "show_object_button", :locals => {object: repo, size: 'xs' } %> + + + <%= repo[:name] %> + + + <%= repo.http_fetch_url %>
+ <%= @repo_writable[repo.uuid] ? repo.push_url : repo.fetch_url %> + + + <% if repo.editable? %> + <%= link_to(repository_path(id: repo.uuid), method: :delete, class: 'btn btn-sm', data: {confirm: "Really delete '#{repo.name || repo.uuid}'?"}) do %> + + <% end %> + <% end %> + + + <% 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.