projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18874: Add 'services/workbench2/' from commit 'f6f88d9ca9cdeeeebfadcfe999789bfb9f69e5c6'
[arvados.git]
/
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 f9d6be2eda0a35c80bfc6a65245d00782d98a8f7..3d8ea3fff199846ab0cda07b8ba19dac5dbaf3cc 100644
(file)
--- a/
apps/workbench/app/views/collections/_sharing_button.html.erb
+++ b/
apps/workbench/app/views/collections/_sharing_button.html.erb
@@
-1,10
+1,14
@@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
<% button_attrs = {
class: 'btn btn-xs btn-info',
remote: true,
method: :post,
} %>
<% if @search_sharing.nil? %>
<% button_attrs = {
class: 'btn btn-xs btn-info',
remote: true,
method: :post,
} %>
<% if @search_sharing.nil? %>
- <
%# API token can't manage other tokens. Disable this feature. %
>
+ <
p>Your API token is not authorized to manage collection sharing links.</p
>
<% elsif @search_sharing.empty? %>
<%= button_to("Create sharing link", {action: "share"}, button_attrs) %>
<% else %>
<% elsif @search_sharing.empty? %>
<%= button_to("Create sharing link", {action: "share"}, button_attrs) %>
<% else %>