4291: Clean up HTTP methods in Workbench URL generators.
[arvados.git] / apps / workbench / app / views / collections / _sharing_button.html.erb
1 <%# a nil @search_sharing means we got an AccessForbiddenException and should
2 disable this feature entirely. %>
3 <% if @search_sharing != nil %>
4   <% if @search_sharing.any? %>
5     <div>Shared at:
6       <span class="pull-right">
7         <%= link_to "Unshare", unshare_collection_url, {
8               class: 'btn-xs btn-info',
9               remote: true,
10               method: :post,
11             } %></span>
12       <div class="smaller-text" style="word-break: break-all"><%= link_to download_link, download_link %></div>
13     </div>
14   <% else %>
15     <%= link_to "Create sharing link", share_collection_url, {
16           class: 'btn-xs btn-info',
17           remote: true,
18           method: :post,
19         } %>
20   <% end %>
21 <% end %>