projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
5183: Disable animation on modal. (It seems to cause intermittent test failures....
[arvados.git]
/
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 4f22ae9cd3a4e2e47d684133b953ea06730dd4fd..83ec30a8146f9311a03f817568ccd46f14d05075 100644
(file)
--- a/
apps/workbench/app/views/users/_manage_repositories.html.erb
+++ b/
apps/workbench/app/views/users/_manage_repositories.html.erb
@@
-18,19
+18,26
@@
<th> Name </th>
<th> Read/Write </th>
<th> URL </th>
<th> Name </th>
<th> Read/Write </th>
<th> URL </th>
+ <th> </th>
</tr>
</thead>
<tbody>
<% @my_repositories.andand.each do |repo| %>
</tr>
</thead>
<tbody>
<% @my_repositories.andand.each do |repo| %>
+ <% writable = @repo_writable[repo.uuid] %>
<tr>
<td style="word-break:break-all;">
<%= repo[:name] %>
</td>
<td>
<tr>
<td style="word-break:break-all;">
<%= repo[:name] %>
</td>
<td>
- <%=
repo[:push_url]
? 'writable' : 'read-only' %>
+ <%=
writable
? 'writable' : 'read-only' %>
</td>
<td style="word-break:break-all;">
</td>
<td style="word-break:break-all;">
- <code><%= repo[:fetch_url] %></code>
+ <code><%= writable ? repo[:push_url] : repo[:fetch_url] %></code>
+ </td>
+ <td>
+ <% if writable == 'can_manage' %>
+ <%= link_to "Share", "/repositories/#{repo[:uuid]}#Sharing" %>
+ <% end %>
</td>
</tr>
<% end %>
</td>
</tr>
<% end %>