X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d6d7788c4e6b1d3da88833329b326fd7a3891503..706f34d335cecb9f321dda8abaf8718fa951e908:/apps/workbench/app/views/users/_manage_repositories.html.erb diff --git a/apps/workbench/app/views/users/_manage_repositories.html.erb b/apps/workbench/app/views/users/_manage_repositories.html.erb index 4f22ae9cd3..bcf0d64319 100644 --- a/apps/workbench/app/views/users/_manage_repositories.html.erb +++ b/apps/workbench/app/views/users/_manage_repositories.html.erb @@ -1,4 +1,18 @@ -
+
+
+
+ <%= link_to raw(' Add new repository'), "#", + {class: 'btn btn-xs btn-primary', 'data-toggle' => "modal", + 'data-target' => '#add-repository-modal'} %> +
+

+ + Repositories + +

+
+ +

For more information see <%= link_to raw('Writing a pipeline'), "#{Rails.configuration.arvados_docsite}/user/tutorials/tutorial-firstscript.html", target: "_blank"%>. @@ -18,19 +32,26 @@ Name Read/Write URL + <% @my_repositories.andand.each do |repo| %> + <% writable = @repo_writable[repo.uuid] %> <%= repo[:name] %> - <%= repo[:push_url] ? 'writable' : 'read-only' %> + <%= writable ? 'writable' : 'read-only' %> - <%= repo[:fetch_url] %> + <%= writable ? repo.push_url : repo.fetch_url %> + + + <% if writable == 'can_manage' %> + <%= link_to "Share", "/repositories/#{repo[:uuid]}#Sharing" %> + <% end %> <% end %> @@ -38,3 +59,4 @@ <% end %>

+