-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix attachment template if no password is set
- Loading branch information
1 parent
a8b67d7
commit 51c0c14
Showing
3 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>%FILENAME% - Filelink Attachment</title> | ||
<meta charset="utf-8" /> | ||
</head> | ||
<body> | ||
<div style="padding: 15px; font-family: Calibri, sans-serif;"> | ||
<div style=""><p>The file %FILENAME% was attached as a Filelink. It can be downloaded from the link below.</p></div> | ||
<div style="border: 1px solid rgb(205, 205, 205); border-radius: 5px; margin-top: 10px; margin-bottom: 10px; padding: 15px; display: grid; grid-template-columns: 0fr 1fr 0fr 0fr; align-items: center;" class="cloudAttachmentItem" data-content-location="%FILEURL%" data-service-url=""> | ||
<a href="%FILEURL%" style="color: rgb(15, 126, 219) !important; grid-area: 1 / 2;">%FILENAME%</a> | ||
<img style="grid-area: 1 / 1 / span 6; margin-right: 5px; z-index: 0" alt="Mime Icon" src="data:image/png;base64,%ICONBLOB%" width="32" height="32" /> | ||
<img style="grid-area: 1 / 1 / span 6; margin-right: 5px; margin-left: 22px; margin-top: 20px; z-index: 1;" alt="Paperclip Icon" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik00NjAtODBxLTkxIDAtMTU1LjUtNjIuNVQyNDAtMjk2di00MzBxMC02NCA0NS41LTEwOVQzOTUtODgwcTY1IDAgMTEwIDQ1dDQ1IDExMHYzOTRxMCAzOC0yNiA2NC41VDQ2MC0yNDBxLTM4IDAtNjQtMjguNVQzNzAtMzM2di0zOTJoNDB2Mzk1cTAgMjIgMTQuNSAzNy41VDQ2MC0yODBxMjEgMCAzNS41LTE1dDE0LjUtMzZ2LTM5NXEwLTQ4LTMzLjUtODFUMzk1LTg0MHEtNDggMC04MS41IDMzVDI4MC03MjZ2NDMycTAgNzMgNTMgMTIzLjVUNDYwLTEyMHE3NSAwIDEyNy41LTUxVDY0MC0yOTZ2LTQzMmg0MHY0MzFxMCA5MS02NC41IDE1NFQ0NjAtODBaIi8+PC9zdmc+" width="16" height="16" /><br /> | ||
<span style="grid-column: 2 / span 3; font-size: small;"> | ||
<span>Size: </span><span style="color: rgb(89, 89, 89);">%FILESIZE%</span><br /> | ||
</span> | ||
<span style="grid-column: 2 / span 3; font-size: small;"> | ||
<span>Link: </span><a href="%FILEURL%" style="color: rgb(89, 89, 89) !important;">%FILEURL%</a><br /> | ||
</span> | ||
<span style="grid-column: 2 / span 3; font-size: small;"> | ||
<span>Checksum: </span><span style="color: rgb(89, 89, 89);">%CHECKSUM%</span><br /> | ||
</span> | ||
<span style="grid-column: 2 / span 3; font-size: small;"> | ||
<span>Password: </span><span style="color: rgb(89, 89, 89);">%PASSWORD%</span><br /> | ||
</span> | ||
<span style="grid-column: 2 / span 3; font-size: small;"> | ||
<span>Available until: </span><span style="color: rgb(89, 89, 89);">%VALIDUNTIL%, after which the download link will expire</span><br /> | ||
</span> | ||
<br /> | ||
</div> | ||
<div style="margin-top: 15px; color: rgb(100,100,100); font-size: 11pt; margin-left: 15px"> | ||
<p> | ||
Attachments hosted on %SERVERURL% and subject to the server provider's terms of service and privacy policy. | ||
<b>Beyond the attachment becoming unavailable after the expiration date, the sender may delete the attachment | ||
at any point; download and save the file to retain a local copy.</b> | ||
Be careful who's attachments you trust, especially with executables and office documents. | ||
</p> | ||
</div> | ||
<div style="margin-top: 15px; color: rgb(200,200,200); font-size: 10pt; margin-left: 15px"> | ||
<p>Generated with <a style="color: rgb(200,200,200);" href="https://github.com/bennet0496/nextcloud_attachments">nextcloud_attachments</a> for Roundcube by <a style="color: rgb(200,200,200);" href="https://github.com/bennet0496">Bennet B.</a></p> | ||
<p style="margin-top: -16px">Icons: <a style="color: rgb(200,200,200);" href="https://github.com/ubuntu/yaru">Ubuntu Yaru</a> (CC BY-SA 4.0) and <a style="color: rgb(200,200,200);" href="https://developers.google.com/fonts/docs/material_icons">Material Icons</a> (Apache License 2.0).</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters