X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c1e7255a85dfc2807ba78e1cf9d109d896c80b42..4013f2bd35cf76d92aeafc4d3b0b4e2fd7a2dd84:/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 fc81e705e4..3d8ea3fff1 100644 --- a/apps/workbench/app/views/collections/_sharing_button.html.erb +++ b/apps/workbench/app/views/collections/_sharing_button.html.erb @@ -1,21 +1,21 @@ -<%# a nil @search_sharing means we got an AccessForbiddenException and should -disable this feature entirely. %> -<% if @search_sharing != nil %> - <% 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 %> +