-
Notifications
You must be signed in to change notification settings - Fork 28
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 #1459 from codalab/develop
Merge develop into master
- Loading branch information
Showing
19 changed files
with
133 additions
and
101 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 |
---|---|---|
|
@@ -16,8 +16,8 @@ MAX_EXECUTION_TIME_LIMIT=600 # time limit for the default queue (in seconds) | |
DOMAIN_NAME=localhost:80 | ||
|
||
# SSL style domain definition | ||
[email protected] | ||
# DOMAIN_NAME=example.com:443 | ||
# [email protected] | ||
|
||
RABBITMQ_HOST=rabbit | ||
RABBITMQ_DEFAULT_USER=rabbit-username | ||
|
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 |
---|---|---|
@@ -1,29 +1,35 @@ | ||
{$DOMAIN_NAME} { | ||
# HTTPS options: | ||
# HTTPS Options | ||
tls {$TLS_EMAIL} | ||
|
||
|
||
# Test HTTPS setup | ||
# tls {$TLS_EMAIL} { | ||
# ca https://acme-staging-v02.api.letsencrypt.org/directory | ||
# } | ||
|
||
|
||
# Removing some headers for improved security: | ||
header / -Server | ||
header -Server | ||
|
||
# Serves static files, should be the same as `STATIC_ROOT` setting: | ||
root /var/www/django | ||
|
||
# Serving dynamic requests: | ||
proxy / django:8000 { | ||
except /static /media | ||
transparent | ||
websocket | ||
root * /var/www/django | ||
file_server | ||
|
||
@noStatic { | ||
not path /static/* | ||
not path /media/* | ||
} | ||
|
||
# Serving dynamic requests: | ||
reverse_proxy @noStatic django:8000 | ||
|
||
# Allows to use `.gz` files when available: | ||
gzip | ||
encode gzip | ||
|
||
# Logs: | ||
log stdout | ||
errors stdout | ||
log { | ||
output stdout | ||
format console | ||
} | ||
} |
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
7 changes: 2 additions & 5 deletions
7
src/templates/emails/participation/organizer/participation_accepted.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 |
---|---|---|
@@ -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 %} |
8 changes: 3 additions & 5 deletions
8
src/templates/emails/participation/organizer/participation_accepted.txt
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 |
---|---|---|
@@ -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 %} |
7 changes: 2 additions & 5 deletions
7
src/templates/emails/participation/organizer/participation_denied.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 |
---|---|---|
@@ -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 %} |
8 changes: 3 additions & 5 deletions
8
src/templates/emails/participation/organizer/participation_denied.txt
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 |
---|---|---|
@@ -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 %} |
6 changes: 2 additions & 4 deletions
6
src/templates/emails/participation/organizer/participation_requested.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 |
---|---|---|
@@ -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 %} |
8 changes: 3 additions & 5 deletions
8
src/templates/emails/participation/organizer/participation_requested.txt
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 |
---|---|---|
@@ -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 %} |
9 changes: 6 additions & 3 deletions
9
src/templates/emails/participation/participant/participation_accepted.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 |
---|---|---|
@@ -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 %} | ||
|
||
|
||
|
12 changes: 7 additions & 5 deletions
12
src/templates/emails/participation/participant/participation_accepted.txt
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 |
---|---|---|
@@ -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 %} |
11 changes: 8 additions & 3 deletions
11
src/templates/emails/participation/participant/participation_denied.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 |
---|---|---|
@@ -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 %} | ||
|
||
|
Oops, something went wrong.