8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / collections / _sharing_button.html.erb
1 <% button_attrs = {
2      class: 'btn btn-xs btn-info',
3      remote: true,
4      method: :post,
5    } %>
6 <% if @search_sharing.nil? %>
7   <p>Your API token is not authorized to manage collection sharing links.</p>
8 <% elsif @search_sharing.empty? %>
9   <%= button_to("Create sharing link", {action: "share"}, button_attrs) %>
10 <% else %>
11   <div>
12     <% button_attrs[:class] += " pull-right" %>
13     <%= button_to("Unshare", {action: "unshare"}, button_attrs) %>
14     Shared at:
15     <div class="smaller-text" style="clear: both; word-break: break-all"><%= link_to download_link, download_link %></div>
16   </div>
17 <% end %>