-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jobs: templating for email action (#1326)
* email action wip * fix email templating * remove unnecessary file * add optional auth field * rename field to bodyTemplateFile * fix lint errors
- Loading branch information
Showing
4 changed files
with
165 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<html> | ||
<head> | ||
<style type="text/css"> | ||
body { | ||
font-family: Helvetica, sans-serif; | ||
background: #f0f0f0; | ||
margin: 1em; | ||
} | ||
|
||
.container { | ||
margin: auto; | ||
max-width: 50em; | ||
background: white; | ||
padding: 2em; | ||
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), | ||
0px 2px 2px 0px rgba(0, 0, 0, 0.14), | ||
0px 1px 5px 0px rgba(0, 0, 0, 0.12); | ||
} | ||
.job-id-container { | ||
padding: 1em 0; | ||
} | ||
.footer { | ||
font-size: 0.8em; | ||
color: #666; | ||
font-style: italic; | ||
padding-top: 2em; | ||
} | ||
.link { | ||
text-decoration: none; | ||
color: #de9300; | ||
} | ||
.link:hover { | ||
color: #fea901; | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
border-spacing: 10px; | ||
|
||
tr { | ||
border-top: 1px solid #eee; | ||
} | ||
td { | ||
padding: 0.5em; | ||
} | ||
|
||
.key{ | ||
font-weight: bold; | ||
color: #666; | ||
vertical-align: top; | ||
margin-top: 0; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div> | ||
Your {{type}} job has been submitted and will be processed as soon as possible.<br> | ||
You will be notified by email as soon as the job is completed. | ||
</div> | ||
<div class="job-id-container"> | ||
<b>Job id:</b> {{id}} | ||
</div> | ||
{{#if jobParams.datasetIds}} | ||
<p><b>Job will be perfomed on the following dataset(s):</b></p> | ||
<table> | ||
{{#each jobParams.datasetIds}} | ||
<tr style="background-color: lightblue;"> | ||
<td class="key"> | ||
{{this}} | ||
</td> | ||
</tr> | ||
{{/each}} | ||
</table> | ||
{{/if}} | ||
|
||
<div class="footer"> | ||
This email was automatically generated by | ||
<a class="link" href="https://scicatproject.github.io/">SciCat</a>. | ||
Please do not reply. | ||
</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
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