1 {% load i18n extra_tags email_tags %}
4 prefix = html.mark_safe(smart_str(settings.EMAIL_SUBJECT_PREFIX))
5 app_name = smart_str(settings.APP_SHORT_NAME)
6 safe_app_name = html.mark_safe(smart_str(settings.APP_SHORT_NAME))
7 app_url = smart_str(settings.APP_URL)
8 newmember_name = smart_str(newmember.username)
9 safe_newmember_name = html.mark_safe(smart_str(newmember.username))
10 newmember_url = smart_str(newmember.get_profile_url())
11 newmember_link = html.objlink(newmember, style=settings.EMAIL_ANCHOR_STYLE)
15 {% subject %}{% blocktrans %}{{ prefix }} {{ safe_newmember_name }} is a new member on {{ safe_app_name }}{% endblocktrans %}{% endsubject %}
17 {% htmlcontent notifications/base.html %}
18 <p style="{{ p_style }}">
20 {{ newmember_link }} has just joined {{ app_name }}.
21 View <a style="{{ a_style }}" href="{{ app_url }}{{ newmember_url }}">{{ newmember_name }}'s profile</a>.
26 {% textcontent notifications/base_text.html %}
28 {{ safe_newmember_name }} has just joined {{ safe_app_name }}. You can visit {{ safe_newmember_name }}'s profile using the following url:
29 {{ app_url }}{{ newmember_url }}