X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a2efd7925361ae71ee2abae987fa1b4801ac0555..a2ad62cae1e549d9224c6851b9e7ff0f3470a07a:/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 7ff11bd216..bcf0d64319 100644 --- a/apps/workbench/app/views/users/_manage_repositories.html.erb +++ b/apps/workbench/app/views/users/_manage_repositories.html.erb @@ -1,36 +1,62 @@ -
+
+
+
+ <%= 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"%> + "#{Rails.configuration.arvados_docsite}/user/tutorials/tutorial-firstscript.html", target: "_blank"%>.

- - - - - - - - - - - - - - - <% @my_repositories.andand.each do |repo| %> + <% 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 Writable URL
+ + + + + + - - - + + + + - <% end %> - -
- <%= repo[:name] %> - - <%= repo[:push_url] != nil %> - - <%= repo[:fetch_url] %> - Name Read/Write URL
+ + + <% @my_repositories.andand.each do |repo| %> + <% writable = @repo_writable[repo.uuid] %> + + + <%= repo[:name] %> + + + <%= writable ? 'writable' : 'read-only' %> + + + <%= writable ? repo.push_url : repo.fetch_url %> + + + <% if writable == 'can_manage' %> + <%= link_to "Share", "/repositories/#{repo[:uuid]}#Sharing" %> + <% end %> + + + <% end %> + + + <% end %> +