summaryrefslogtreecommitdiffstats
path: root/core/js/share/sharedialoglinkshareview.handlebars
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/share/sharedialoglinkshareview.handlebars')
-rw-r--r--core/js/share/sharedialoglinkshareview.handlebars42
1 files changed, 28 insertions, 14 deletions
diff --git a/core/js/share/sharedialoglinkshareview.handlebars b/core/js/share/sharedialoglinkshareview.handlebars
index bc7051683a2..64f52704290 100644
--- a/core/js/share/sharedialoglinkshareview.handlebars
+++ b/core/js/share/sharedialoglinkshareview.handlebars
@@ -1,25 +1,39 @@
{{#if shareAllowed}}
-<ul id="shareLink" class="shareWithList">
- <li data-share-id="{{cid}}">
- <div class="avatar icon-public-white"></div><span class="username" title="{{linkShareLabel}}">{{linkShareLabel}}</span>
- <span class="sharingOptionsGroup">
- <span class="shareOption">
- <span class="icon-loading-small hidden"></span>
- <input id="linkCheckbox-{{cid}}" {{#if isLinkShare}}checked="checked"{{/if}} type="checkbox" name="linkCheckbox" class="linkCheckbox permissions checkbox">
- <label for="linkCheckbox-{{cid}}">{{linkShareEnableLabel}}</label>
+<ul class="shareWithList">
+ {{#if nolinkShares}}
+ <li data-share-id="new-share">
+ <div class="avatar icon-public-white"></div>
+ <span class="username">{{newShareLabel}}</span>
+ <span class="sharingOptionsGroup">
+ <div class="share-menu">
+ <a href="#" class="icon icon-add new-share has-tooltip {{#if showPending}}hidden{{/if}}" title="{{newShareTitle}}"></a>
+ <span class="icon icon-loading-small {{#unless showPending}}hidden{{/unless}}"></span>
+ {{#if showPending}}
+ {{{pendingPopoverMenu}}}
+ {{/if}}
+ </div>
</span>
- {{#if showMenu}}
- <div class="share-menu" tabindex="0"><span class="icon icon-more"></span>
+ </li>
+ {{/if}}
+ {{#each linkShares}}
+ <li data-share-id="{{cid}}">
+ <div class="avatar icon-public-white"></div><span class="username" title="{{linkShareLabel}}">{{linkShareLabel}}</span>
+
+ <span class="sharingOptionsGroup">
+ <a href="#" class="clipboard-button icon icon-clippy has-tooltip" data-clipboard-text="{{shareLinkURL}}" title="{{copyLabel}}"></a>
+ <div class="share-menu">
+ <a href="#" class="icon icon-more {{#if showPending}}hidden{{/if}}"></a>
+ <span class="icon icon-loading-small {{#unless showPending}}hidden{{/unless}}"></span>
{{#if showPending}}
{{{pendingPopoverMenu}}}
{{else}}
{{{popoverMenu}}}
{{/if}}
</div>
- {{/if}}
- </span>
- </li>
+ </span>
+ </li>
+ {{/each}}
</ul>
{{else}}
-{{#if noSharingPlaceholder}}<input id="shareWith-{{cid}}" class="shareWithField" type="text" placeholder="{{noSharingPlaceholder}}" disabled="disabled"/>{{/if}}
+{{#if noSharingPlaceholder}}<input id="shareWith-{{cid}}" class="shareWithField" type="text" placeholder="{{noSharingPlaceholder}}" disabled="disabled" />{{/if}}
{{/if}}