sharedialoglinkshareview.handlebars 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {{#if shareAllowed}}
  2. <ul class="shareWithList">
  3. {{#if nolinkShares}}
  4. <li data-share-id="{{newShareId}}">
  5. <div class="avatar icon-public-white"></div>
  6. <span class="username">{{newShareLabel}}</span>
  7. <span class="sharingOptionsGroup">
  8. <div class="share-menu">
  9. <a href="#" class="icon icon-add new-share has-tooltip {{#if showPending}}hidden{{/if}}" title="{{newShareTitle}}"></a>
  10. <span class="icon icon-loading-small {{#unless showPending}}hidden{{/unless}}"></span>
  11. {{#if showPending}}
  12. {{{pendingPopoverMenu}}}
  13. {{/if}}
  14. </div>
  15. </span>
  16. </li>
  17. {{/if}}
  18. {{#each linkShares}}
  19. <li data-share-id="{{cid}}">
  20. <div class="avatar icon-public-white"></div>
  21. <span class="username" title="{{linkShareCreationDate}}">{{linkShareLabel}}</span>
  22. <span class="sharingOptionsGroup">
  23. <a href="#" class="clipboard-button icon icon-clippy has-tooltip" data-clipboard-text="{{shareLinkURL}}" title="{{copyLabel}}"></a>
  24. <div class="share-menu">
  25. <a href="#" class="icon icon-more {{#if showPending}}hidden{{/if}}"></a>
  26. <span class="icon icon-loading-small {{#unless showPending}}hidden{{/unless}}"></span>
  27. {{#if showPending}}
  28. {{{pendingPopoverMenu}}}
  29. {{else}}
  30. {{{popoverMenu}}}
  31. {{/if}}
  32. </div>
  33. </span>
  34. </li>
  35. {{/each}}
  36. </ul>
  37. {{else}}
  38. {{#if noSharingPlaceholder}}<input id="shareWith-{{cid}}" class="shareWithField" type="text" placeholder="{{noSharingPlaceholder}}" disabled="disabled" />{{/if}}
  39. {{/if}}