forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request galaxyproject#17914 from davelopez/add_email_notif…
…ications_channel Add `email` notifications channel
- Loading branch information
Showing
34 changed files
with
1,031 additions
and
147 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
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
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
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
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
84 changes: 84 additions & 0 deletions
84
lib/galaxy/config/templates/mail/notifications/message-email.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,84 @@ | ||
Use this template to customize the HTML-formatted email your users will receive | ||
when a new notification of category "message" is sent to them. | ||
Copy the file to {{ templates_dir }}/mail/notifications/message-email.html and modify as required. | ||
|
||
If you are adding URLs, remember that only absolute URLs (with | ||
a domain name) make sense in email! They can be served from any stable | ||
location, including your Galaxy server or GitHub. | ||
|
||
The following variables are available for inserting into the HTML with Jinja2 | ||
syntax, like {{ variable_name }}. They will be rendered into the text before | ||
the email is sent: | ||
|
||
- name The user's name | ||
- user_email The user's email | ||
- date Date and time of the notification | ||
- hostname Your galaxy's hostname (i.e. usegalaxy.* or the value in `server_name` from the galaxy config file) | ||
- contact_email Your galaxy's contact email | ||
- notification_settings_url The URL to the user's notification settings to manage their subscriptions | ||
- content The message payload | ||
- subject The message subject | ||
- content The message content in HTML (converted from Markdown) | ||
- galaxy_url The URL to the Galaxy instance (i.e. https://usegalaxy.*) | ||
|
||
Template begins here >>>>>> | ||
<!DOCTYPE html> | ||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>[Galaxy] New message received: {{ content['subject'] }}</title> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet"> | ||
</head> | ||
<body style="font-family: 'Roboto', sans-serif;"> | ||
|
||
<p style="font-size: 12pt;"> | ||
Hello {{ name }},<br><br> | ||
|
||
You have received a new message on <b>{{ date }}</b> from the Galaxy Team at <b>{{ hostname }}</b>, here are the details: | ||
<br><br> | ||
</p> | ||
|
||
<p style="font-size: 12pt;"> | ||
<strong>Subject:</strong> | ||
<br> | ||
{{ content['subject'] }} | ||
<br><br> | ||
<strong>Message:</strong> | ||
<br> | ||
{{ content['message'] }} | ||
<br><br> | ||
</p> | ||
|
||
<p style="font-size: 12pt;"> | ||
Thank you for using Galaxy! | ||
</p> | ||
|
||
|
||
<p style="font-size: 12pt;"> | ||
Regards,<br> | ||
Your Galaxy Team at <a href="{{ galaxy_url }}">{{ hostname }}</a> | ||
</p> | ||
|
||
<p style="font-size: 10pt;"> | ||
You received this email because you are subscribed to receive notifications from the Galaxy Team. | ||
{% if notification_settings_url %} | ||
You can manage your notification settings <a href="{{ notification_settings_url }}">here</a>. | ||
{% endif %} | ||
|
||
<br> | ||
|
||
{% if contact_email %} | ||
This is an automated email. If you have any questions or concerns, please do not reply to this email, instead, contact us at <a href="mailto:{{ contact_email }}">{{ contact_email }}</a>. | ||
{% endif %} | ||
</p> | ||
|
||
<img | ||
style="width: 130px; height: auto; margin: 15px 0;" | ||
src="https://galaxyproject.org/images/galaxy-logos/galaxy_project_logo_square.png" | ||
alt="Galaxy project logo" | ||
> | ||
|
||
<br> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.