2 <div class="modal-dialog">
3 <div class="modal-content">
4 <div class="modal-header">
5 <button type="button" class="close" onClick="reset_form()" data-dismiss="modal" aria-hidden="true">×</button>
6 <h4 class="modal-title">Sharing</h4>
8 <div class="modal-body">
9 <div id="sharing-text" style="text-align: center; word-wrap: break-word">
10 <% if @search_sharing.any? %>
11 Use this link to share this collection:<br>
13 <% link = collections_url + "/download/#{@object.uuid}/#{@search_sharing.first.api_token}" %>
14 <%= link_to link, link %>
20 <div style="text-align: center; padding-top: 1em">
21 <% if @search_sharing and @search_sharing.any? %>
22 <%= link_to "Unshare", unshare_collection_url, {
23 class: 'btn btn-success',
28 <%= link_to "Share", share_collection_url, {
29 class: 'btn btn-info',