Merge remote-tracking branch 'origin/master' into 2044-share-button
[arvados.git] / apps / workbench / app / views / collections / _sharing_button.html.erb
1 <% if @search_sharing.any? %>
2   <% linktext = "Shared" %>
3   <% btnstyle = "btn-success" %>
4 <% else %>
5   <% linktext = "Share" %>
6   <% btnstyle = "btn-info" %>
7 <% end %>
8 <%= link_to linktext, sharing_popup_collection_url(id: @object.uuid),  {class: "btn #{btnstyle}", :remote => true, 'data-toggle' =>  "modal", 'data-target' => '#collection-sharing-modal-window'}  %>