1 <div class="panel panel-default">
2 <div class="panel-heading">
3 <div class="pull-right">
4 <%= link_to raw('<i class="fa fa-plus"></i> Add new repository'), "#",
5 {class: 'btn btn-xs btn-primary', 'data-toggle' => "modal",
6 'data-target' => '#add-repository-modal'} %>
8 <h4 class="panel-title">
9 <%= link_to repositories_user_path(current_user) do%>
15 <div id="manage_repositories" class="panel-body">
17 When you are using an Arvados virtual machine, you should clone the https:// URLs. This will authenticate automatically using your API token.
20 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.
23 <% if !@my_repositories.any? %>
24 You do not seem to have access to any repositories. If you would like to request access, please contact your system admin.
26 <table class="table repositories-table">
28 <col style="width: 5%" />
29 <col style="width: 30%" />
30 <col style="width: 60%" />
31 <col style="width: 5%" />
42 <% @my_repositories.andand.each do |repo| %>
45 <%= render :partial => "show_object_button", :locals => {object: repo, size: 'xs' } %>
47 <td style="word-break:break-all;">
50 <td style="word-break:break-all;">
51 <code><%= repo.http_fetch_url %></code><br/>
52 <code><%= @repo_writable[repo.uuid] ? repo.push_url : repo.fetch_url %></code>
55 <% if repo.editable? %>
56 <%= link_to(repository_path(id: repo.uuid), method: :delete, class: 'btn btn-sm', data: {confirm: "Really delete '#{repo.name || repo.uuid}'?"}) do %>
57 <i class="fa fa-fw fa-trash-o"></i>