Skip to content

Commit

Permalink
Merge pull request #1452 from KamalDas492/email-enhancement
Browse files Browse the repository at this point in the history
Email templates updated (Revise email text #1445)
  • Loading branch information
Didayolo authored May 23, 2024
2 parents 05049d8 + ff89c66 commit 826ba4f
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 58 deletions.
41 changes: 34 additions & 7 deletions src/templates/emails/base_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,27 @@
background-color: #f7f7f7;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
}
body {
/*padding: 20px;*/
.container {
width: 100%;
max-width: 600px;
margin: auto;
border: 1px solid #dddddd;
background-color: #ffffff;
}
.header_img {
width: 40%;
}
.header {
width: 100%;
background-color: #2D3E4C;
min-height: 110px;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
}
.content{
padding: 20px;
}
h1 {
font-size: 41px;
Expand Down Expand Up @@ -57,6 +76,7 @@
color: #ccc;
font-size: 11px;
line-height: 18px;
text-align: center;
}
blockquote {
color: #555555;
Expand All @@ -78,27 +98,34 @@
</style>
</head>
<body>
<div class = "container">
<div class = "header">
<img class = "header_img" src = "../../static/img/codabench.png" alt = "codabench" />
</div>
<div class = "content">
<h3>Hello{% if user %} {{ user.username }}{% endif %},</h3>

<div id="header">
<h1>Hello{% if user %} {{ user.username }}{% endif %},</h1>
</div>

{% block title %}
{% endblock %}

{% block content %}
<p>We're thrilled to inform you that your application for the
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>
competition has been <b>accepted</b>. Get ready to showcase your skills and compete with other talented individuals.</p>
<p>We look forward to seeing your participation.</p>
{% endblock %}

{% if not mass_email %}
<div id="signature">
<p>Thanks,</p>

<p>Codabench Team</p>
</div>
{% endif %}

</div>
<div id="footer">
<p><a href="http://{{ site.domain }}">Unsubscribe or manage notification settings</a> | <a href="https://github.com/codalab/codalab-competitions/wiki/Privacy">Privacy policy</a></p>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends 'emails/base_email.html' %}

{% block content %}
<p>The user {{ participant.user.username }} was accepted into your competition:</p>
<a href="http://
{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>

<p>Participants can be managed from the admin tab of your competition</p>
<p>We're writing to inform you that user {{ participant.user.username }} has been accepted into your competition
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>.You can manage all participants from the admin panel of your competition.</p>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{% extends 'emails/base_email.txt' %}
{% extends 'emails/base_email.html' %}

{% block content %}
The user {{ participant.user.username }} was accepted into your competition:
{{ participant.competition.title }} -> http://{{ site.domain }}{{ participant.competition.get_absolute_url }}

Participants can be managed from the admin tab of your competition
<p>We're writing to inform you that user {{ participant.user.username }} has been accepted into your competition
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>.You can manage all participants from the admin panel of your competition.</p>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{% extends 'emails/base_email.html' %}

{% block content %}
<p>The user {{ participant.user.username }} was denied permission to your competition:</p>
<a href="http://
{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>

<p>Participants can be managed from the admin tab of your competition.</p>
<p>We're writing to inform you that user {{ participant.user.username }} has been denied to your competition
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>.You can manage all participants from the admin panel of your competition.</p>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{% extends 'emails/base_email.txt' %}
{% extends 'emails/base_email.html' %}

{% block content %}
The user {{ participant.user.username }} was revoked permission to your competition:
{{ participant.competition.title }} -> http://{{ site.domain }}{{ participant.competition.get_absolute_url }}

Participants can be managed from the admin tab of your competition
<p>We're writing to inform you that user {{ participant.user.username }} has been denied to your competition
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>.You can manage all participants from the admin panel of your competition.</p>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{% extends 'emails/base_email.html' %}

{% block content %}
<p>The user {{ participant.user.username }} requested access to your competition:</p>
<a href="http://
{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>
<p>Participants can be managed from the admin tab of your competition</p>
<p>We're writing to inform you that user {{ participant.user.username }} has requested access to your competition
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>.You can manage all participants from the admin panel of your competition.</p>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{% extends 'emails/base_email.txt' %}
{% extends 'emails/base_email.html' %}

{% block content %}
The user {{ participant.user.username }} requested access to your competition:
{{ participant.competition.title }} -> http://{{ site.domain }}{{ participant.competition.get_absolute_url }}

Participants can be managed from the admin tab of your competition
<p>We're writing to inform you that user {{ participant.user.username }} has requested access to your competition
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>.You can manage all participants from the admin panel of your competition.</p>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{% extends 'emails/base_email.html' %}

{% block content %}
<p>This is a message updating your access to the competition:</p>
<p>We're thrilled to inform you that your application for the
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>

<p>Your status has been accepted!</p>
competition has been <b>accepted</b>. Get ready to showcase your skills and compete with other talented individuals.</p>
<p>We look forward to seeing your participation.</p>
{% endblock %}



Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{% extends 'emails/base_email.txt' %}
{% extends 'emails/base_email.html' %}

{% block content %}
This is a message updating your access to the competition:
{{ participant.competition.title }} -> http://{{ site.domain }}{{ participant.competition.get_absolute_url }}
<p>We're thrilled to inform you that your application for the
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>
competition has been <b>accepted</b>. Get ready to showcase your skills and compete with other talented individuals.</p>
<p>We look forward to seeing your participation.</p>
{% endblock %}


Your status has been accepted!

{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{% extends 'emails/base_email.html' %}

{% block content %}
<p>This is a message updating your access to the competition:</p>
<p>We're writing to inform you about your application for the
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>

<p>Your participation privileges have been denied.</p>
competition. While your application was carefully considered, we regret to inform you that your participation privileges
have been denied. We encourage you to review the competition details and rules to see if there are areas where you can
improve your application for future competitions. </p>
<p>Thank you for your interest in the competition. We wish you the best of luck in your future endeavors.
</p>

{% endblock %}


Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{% extends 'emails/base_email.txt' %}
{% extends 'emails/base_email.html' %}

{% block content %}
This is a message updating your access to the competition:
{{ participant.competition.title }} -> http://{{ site.domain }}{{ participant.competition.get_absolute_url }}

Your participation privileges have been denied.
<p>We're writing to inform you about your application for the
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>
competition. While your application was carefully considered, we regret to inform you that your participation privileges
have been denied. We encourage you to review the competition details and rules to see if there are areas where you can
improve your application for future competitions. </p>
<p>Thank you for your interest in the competition. We wish you the best of luck in your future endeavors.
</p>

{% endblock %}


Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{% extends 'emails/base_email.html' %}

{% block content %}
<p>This is a message confirming you have requested access to the competition:</p>
<p>Thanks for your interest in the
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>
competition. We have received your request to participate.</p>

<p>You will be notified if your participation status is approved or denied.</p>
<p>We will carefully review your application and notify you by email regarding your participation status (accepted or denied).
In the meantime, you can review the competition details and rules to familiarize yourself with the challenge. </p>

<p>We look forward to your participation!</p>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{% extends 'emails/base_email.txt' %}
{% extends 'emails/base_email.html' %}

{% block content %}
This is a message confirming you have requested access to the competition:
{{ participant.competition }} -> http://{{ site.domain }}{{ participant.competition.get_absolute_url }}
<p>Thanks for your interest in the
<a href="http://{{ site.domain }}{{ participant.competition.get_absolute_url }}">{{ participant.competition.title }}</a>
competition. We have received your request to participate.</p>

You will be notified if your participation status is approved or denied.
<p>We will carefully review your application and notify you by email regarding your participation status (accepted or denied).
In the meantime, you can review the competition details and rules to familiarize yourself with the challenge. </p>

<p>We look forward to your participation!</p>
{% endblock %}

0 comments on commit 826ba4f

Please sign in to comment.