-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ced3175
commit 9703205
Showing
8 changed files
with
506 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,14 @@ def su_sentence(): | |
"NEW_JOIN_REQUEST": 'MyAEGEE: New join request for your body', | ||
"NEW_MEMBER": 'MyAEGEE: Welcome to AEGEE' | ||
}, | ||
#"EVENTS": {}, | ||
"EVENTS": { | ||
"MAIL_APPLIED": f"You've successfully applied for {su_sentence()}", | ||
"MAIL_UPDATED": f"Your application for {su_sentence()} was updated", | ||
"MAIL_EVENT_CREATED": "The event was created", | ||
"MAIL_EVENT_UPDATED": "The event was updated", | ||
"MAIL_EVENT_STATUS_CHANGED": "Your event's status was changed", | ||
"MAIL_EVENT_SUBMITTED": "An event was submitted", | ||
}, | ||
"SUMMERUNIVERSITIES": { | ||
"MAIL_APPLIED_MEMBER": f"You've successfully applied for {su_sentence()}", | ||
"MAIL_APPLIED_ORGANISERS": f"Somebody has applied for {su_sentence()}", | ||
|
@@ -55,7 +62,14 @@ def su_sentence(): | |
"NEW_JOIN_REQUEST": 'member_joined', | ||
"NEW_MEMBER": 'new_member' | ||
}, | ||
#"EVENTS": {}, | ||
"EVENTS": { | ||
"MAIL_APPLIED": "events_applied", | ||
"MAIL_UPDATED": "events_edited", | ||
"MAIL_EVENT_CREATED": "events_event_created", | ||
"MAIL_EVENT_UPDATED": "events_event_updated", | ||
"MAIL_EVENT_STATUS_CHANGED": "events_status_changed", | ||
"MAIL_EVENT_SUBMITTED": "events_submitted", | ||
}, | ||
"SUMMERUNIVERSITIES": { | ||
"MAIL_APPLIED_MEMBER": "summeruniversity_applied", | ||
"MAIL_APPLIED_ORGANISERS": "summeruniversity_organizer_applied", | ||
|
@@ -120,6 +134,7 @@ def generate_fake_payload(subj="", template=""): | |
"ideal_su": "I get to suck", | ||
"motivation": "I wanna suck", | ||
"status": "totally snafu", | ||
"email": "[email protected]", | ||
"answers": [ | ||
"ho-hoo, ho-hoo", | ||
"42", | ||
|
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,76 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
{% import "snippets/macros.jinja2" as macros %} | ||
{{ macros.head("MyAEGEE: Your application for VAR"|replace("VAR",event["name"])) }} | ||
|
||
<body style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;"> | ||
<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" style="margin:0; padding:0; width:100% !important; line-height: 100% !important; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;background-color: #F9FAFB;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td width="10" valign="top"> </td> | ||
<td valign="top" align="center"> | ||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width: 100%; max-width: 600px; background-color: #FFF; border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;" | ||
id="contentTable"> | ||
<tbody> | ||
<tr> | ||
<td width="600" valign="top" align="center" style="border-collapse:collapse;"> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;"> </div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #E0E4E8;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 56px 56px 28px 56px;" valign="top"> | ||
<a style="color: #3498DB; text-decoration: none;" href="my.aegee.eu" | ||
target="_blank"><img style="width: 56px; height: 56px; border: 0;" alt="AEGEE-Europe" | ||
src="https://my.aegee.eu/images/logo.png"> | ||
</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center" style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 20px; color: #333;"><strong>You've successfully applied to {{ event["name"] }}</strong></div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; color: #333;"> | ||
Here are your application details: | ||
{% include "snippets/summeruniversity_application_info.jinja2" %} | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; line-height: 24px; color: #A7ADB5;">This email was autogenerated by MyAEGEE mailer.</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
{% import "snippets/macros.jinja2" as macros %} | ||
{{ macros.head("MyAEGEE: Your application for VAR"|replace("VAR",event["name"])) }} | ||
|
||
<body style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;"> | ||
<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" style="margin:0; padding:0; width:100% !important; line-height: 100% !important; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;background-color: #F9FAFB;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td width="10" valign="top"> </td> | ||
<td valign="top" align="center"> | ||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width: 100%; max-width: 600px; background-color: #FFF; border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;" | ||
id="contentTable"> | ||
<tbody> | ||
<tr> | ||
<td width="600" valign="top" align="center" style="border-collapse:collapse;"> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;"> </div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #E0E4E8;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 56px 56px 28px 56px;" valign="top"> | ||
<a style="color: #3498DB; text-decoration: none;" href="my.aegee.eu" | ||
target="_blank"><img style="width: 56px; height: 56px; border: 0;" alt="AEGEE-Europe" | ||
src="https://my.aegee.eu/images/logo.png"> | ||
</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center" style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 20px; color: #333;"><strong>Your application for {{ event["name"] }} was successfully updated.</strong></div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; color: #333;"> | ||
Here are your application details: | ||
{% include "snippets/events_application_info.jinja2" %} | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; line-height: 24px; color: #A7ADB5;">This email was autogenerated by MyAEGEE mailer.</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
{% import "snippets/macros.jinja2" as macros %} | ||
{{ macros.head("MyAEGEE: The event has been created") }} | ||
|
||
<body style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;"> | ||
<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" style="margin:0; padding:0; width:100% !important; line-height: 100% !important; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;background-color: #F9FAFB;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td width="10" valign="top"> </td> | ||
<td valign="top" align="center"> | ||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width: 100%; max-width: 600px; background-color: #FFF; border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;" | ||
id="contentTable"> | ||
<tbody> | ||
<tr> | ||
<td width="600" valign="top" align="center" style="border-collapse:collapse;"> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;"> </div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #E0E4E8;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 56px 56px 28px 56px;" valign="top"> | ||
<a style="color: #3498DB; text-decoration: none;" href="my.aegee.eu" | ||
target="_blank"><img style="width: 56px; height: 56px; border: 0;" alt="Logo" | ||
src="https://my.aegee.eu/images/logo.png"> | ||
</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center" style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 20px; color: #333;"> | ||
<strong>The event "{{ event["name"] }}" has been created.</strong> | ||
</div> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; color: #333;"> | ||
You are receiving this as one of the organizers. | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center" style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div> | ||
<a href="https://my.aegee.eu/events/{{ event["url"] }}" style="background-color:#1468C5;border-radius:50px;color:#ffffff;display:inline-block;font-family: 'lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:18px;font-weight: bold;line-height:40px;text-align:center;text-decoration:none;width:270px;-webkit-text-size-adjust:none;" | ||
target="_blank">See event</a> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; line-height: 24px; color: #A7ADB5;">This email was autogenerated by MyAEGEE mailer.</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
{% import "snippets/macros.jinja2" as macros %} | ||
{{ macros.head("MyAEGEE: The event has been updated") }} | ||
|
||
<body style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;"> | ||
<table cellpadding="0" cellspacing="0" border="0" id="backgroundTable" style="margin:0; padding:0; width:100% !important; line-height: 100% !important; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;background-color: #F9FAFB;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td width="10" valign="top"> </td> | ||
<td valign="top" align="center"> | ||
<table cellpadding="0" cellspacing="0" border="0" align="center" style="width: 100%; max-width: 600px; background-color: #FFF; border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt;" | ||
id="contentTable"> | ||
<tbody> | ||
<tr> | ||
<td width="600" valign="top" align="center" style="border-collapse:collapse;"> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;"> </div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #E0E4E8;" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 56px 56px 28px 56px;" valign="top"> | ||
<a style="color: #3498DB; text-decoration: none;" href="my.aegee.eu" | ||
target="_blank"><img style="width: 56px; height: 56px; border: 0;" alt="Logo" | ||
src="https://my.aegee.eu/images/logo.png"> | ||
</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center" style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 20px; color: #333;"> | ||
<strong>The event "{{ event["name"] }}" has been updated.</strong> | ||
</div> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; color: #333;"> | ||
You are receiving this as one of the organizers. | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center" style="padding: 0 56px 28px 56px;" valign="top"> | ||
<div> | ||
<a href="https://my.aegee.eu/events/{{ event["url"] }}" style="background-color:#1468C5;border-radius:50px;color:#ffffff;display:inline-block;font-family: 'lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:18px;font-weight: bold;line-height:40px;text-align:center;text-decoration:none;width:270px;-webkit-text-size-adjust:none;" | ||
target="_blank">See event</a> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background: #F9FAFB;" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" style="padding: 28px 56px;" valign="top"> | ||
<div style="font-family: "lato", "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 28px;font-size: 16px; line-height: 24px; color: #A7ADB5;">This email was autogenerated by MyAEGEE mailer.</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.