X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e2a7fe50d3b6e98b7f549c78c4f91dbe4066ddbb..964ab3dd90ff1508efc0c77378cde2b3a4da1029:/apps/workbench/app/views/collections/_sharing_button.html.erb diff --git a/apps/workbench/app/views/collections/_sharing_button.html.erb b/apps/workbench/app/views/collections/_sharing_button.html.erb index b2ed43ab31..4050e3aee4 100644 --- a/apps/workbench/app/views/collections/_sharing_button.html.erb +++ b/apps/workbench/app/views/collections/_sharing_button.html.erb @@ -1,17 +1,17 @@ -<% if @search_sharing.any? %> -
Your API token is not authorized to manage collection sharing links.
+<% elsif @search_sharing.empty? %> + <%= button_to("Create sharing link", {action: "share"}, button_attrs) %> <% else %> - <%= link_to "Create sharing link", share_collection_url, { - class: 'btn-xs btn-info', - remote: true, - method: 'post' - } %> +