Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / collections / _sharing_button.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <% button_attrs = {
6      class: 'btn btn-xs btn-info',
7      remote: true,
8      method: :post,
9    } %>
10 <% if @search_sharing.nil? %>
11   <p>Your API token is not authorized to manage collection sharing links.</p>
12 <% elsif @search_sharing.empty? %>
13   <%= button_to("Create sharing link", {action: "share"}, button_attrs) %>
14 <% else %>
15   <div>
16     <% button_attrs[:class] += " pull-right" %>
17     <%= button_to("Unshare", {action: "unshare"}, button_attrs) %>
18     Shared at:
19     <div class="smaller-text" style="clear: both; word-break: break-all"><%= link_to download_link, download_link %></div>
20   </div>
21 <% end %>