Skip to content

Commit

Permalink
Add slack invite link for new user email
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Feb 8, 2024
1 parent 3c7904b commit 190bac1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)
Expand Down
1 change: 1 addition & 0 deletions djangogirls/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down
7 changes: 6 additions & 1 deletion templates/emails/new_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
{% endblocktrans %}
</p>

<p>{% trans "We also invited you to Django Girls Slack, where we chat, communicate and meet each other!" %}</p>
<p>
{% blocktrans trimmed %}
Click <a href="{{ slack_invite_link }}">this link</a> to join <a href="{{ slack_invite_link }}">Django Girls Slack</a>,
where we chat, communicate and meet each other!
{% endblocktrans %}
</p>

<p>
{% blocktrans trimmed %}
Expand Down

0 comments on commit 190bac1

Please sign in to comment.