-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a way to send email notifications for upload task via api
- Loading branch information
1 parent
f18e0bb
commit 84fd34a
Showing
3 changed files
with
52 additions
and
2 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
20 changes: 20 additions & 0 deletions
20
wazimap_ng/general/templates/emailTemplates/upload_task_notification.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>{{ subject }}</title> | ||
</head> | ||
<body> | ||
Hello {{user.username}}, | ||
|
||
{% if task.success %} | ||
<p>Upload process for {{dataset.name}} is finished successfully.</p> | ||
{% else %} | ||
<p> Upload process for {{dataset.name}} has failed.</p> | ||
{% endif %} | ||
<p>Please checkout <a href="">{{task.id}}</a> for further details of the process.</p> | ||
|
||
<p>Thanks,<br /> Openup Team</p> | ||
</body> | ||
</html> |