Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / apps / workbench / app / views / users / _manage_repositories.html.erb
1 <div>
2   <p>
3     For more information see <%= link_to raw('Writing a pipeline'),
4     "#{Rails.configuration.arvados_docsite}/user/tutorials/tutorial-firstscript.html", target: "_blank"%>.
5   </p>
6
7   <% if !@my_repositories.any? %>
8     You do not seem to have access to any repositories. If you would like to request access, please contact your system admin.
9   <% else %>
10     <table class="table repositories-table">
11       <colgroup>
12         <col style="width: 30%" />
13         <col style="width: 10%" />
14         <col style="width: 60%" />
15       </colgroup>
16       <thead>
17         <tr>
18           <th> Name </th>
19           <th> Read/Write </th>
20           <th> URL </th>
21         </tr>
22       </thead>
23       <tbody>
24         <% @my_repositories.andand.each do |repo| %>
25           <% writable = @repo_writable[repo.uuid] %>
26           <tr>
27             <td style="word-break:break-all;">
28               <%= repo[:name] %>
29             </td>
30             <td>
31               <%= writable ? 'writable' : 'read-only' %>
32             </td>
33             <td style="word-break:break-all;">
34               <code><%= writable ? repo[:push_url] : repo[:fetch_url] %></code>
35             </td>
36           </tr>
37         <% end %>
38       </tbody>
39     </table>
40   <% end %>
41 </div>