OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/wp-attachments/wp-attachment-list/wp-attachment-list-item.html

30 lines
1.3 KiB

<span class="inplace-editing--trigger-container">
<span class="inplace-editing--trigger-link"
focus-within="'.inplace-edit--icon-wrapper'">
<span class="inplace-editing--container">
<span class="inplace-edit--read-value">
<op-icon icon-classes="icon-context icon-attachment"></op-icon>
<a
class="work-package--attachments--filename"
ng-href="{{ ::attachment.downloadLocation.href || '#' }}"
download>
{{ ::attachment.fileName || attachment.customName || attachment.name }}
<authoring class="work-package--attachments--info"
created-on="attachment.createdAt"
author="attachment.author"
show-author-as-link="false"
ng-if="!$ctrl.workPackage.isNew"></authoring>
</a>
</span>
<a
href=""
class="inplace-edit--icon-wrapper work-package--atachments--delete-button"
ng-if="!!attachment.$links.delete || $ctrl.workPackage.isNew"
ng-click="$ctrl.workPackage.removeAttachment(attachment)"
confirm-popup="{{ ::$ctrl.text.destroyConfirmation }}">
<op-icon icon-classes="icon-delete" icon-title="{{ ::$ctrl.text.removeFile({fileName: attachment.fileName}) }}"></op-icon>
</a>
</span>
</span>
</span>