diff --git a/core/emails.py b/core/emails.py index d9dc7bf11..6e203c344 100644 --- a/core/emails.py +++ b/core/emails.py @@ -22,6 +22,7 @@ def notify_new_user(user, event, password, errors=None): "user": user, "event": event, "password": password, + "slack_invite_link": settings.SLACK_INVITE_LINK, "errors": errors, }, ) diff --git a/djangogirls/settings.py b/djangogirls/settings.py index 39264ea67..215f65ec1 100644 --- a/djangogirls/settings.py +++ b/djangogirls/settings.py @@ -188,6 +188,7 @@ def gettext(s): SLACK_BOT_TOKEN = os.environ.get("SLACK_BOT_TOKEN") SLACK_TEAM_ID = os.environ.get("SLACK_TEAM_ID") SLACK_INVITE_CHANNEL_IDS = os.environ.get("SLACK_INVITE_CHANNEL_IDS", "").split(",") +SLACK_INVITE_LINK = os.environ.get("SLACK_INVITE_LINK", "") RECAPTCHA_PUBLIC_KEY = os.environ.get("RECAPTCHA_PUBLIC_KEY", "") RECAPTCHA_PRIVATE_KEY = os.environ.get("RECAPTCHA_PRIVATE_KEY", "") diff --git a/templates/emails/new_user.html b/templates/emails/new_user.html index cab733754..d46cfae18 100644 --- a/templates/emails/new_user.html +++ b/templates/emails/new_user.html @@ -29,7 +29,12 @@ {% endblocktrans %}

-

{% trans "We also invited you to Django Girls Slack, where we chat, communicate and meet each other!" %}

+

+ {% blocktrans trimmed %} + Click this link to join Django Girls Slack, + where we chat, communicate and meet each other! + {% endblocktrans %} +

{% blocktrans trimmed %}