]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/notifications/newmember.html
Adds a couple of settings for email customization.
[osqa.git] / forum / skins / default / templates / notifications / newmember.html
1 {% load i18n extra_tags email_tags %}
2
3 {% declare %}
4     prefix = settings.EMAIL_SUBJECT_PREFIX
5     app_name = settings.APP_SHORT_NAME
6     app_url = settings.APP_URL
7     newmember_name = newmember.username
8     newmember_url = newmember.get_profile_url()
9     newmember_link = html.objlink(newmember, style=settings.EMAIL_ANCHOR_STYLE)
10 {% enddeclare %}
11
12 {% email %}
13     {% subject %}{% blocktrans %}{{ prefix }}{{ newmember_name }} is a new member on {{ app_name }}{% endblocktrans %}{% endsubject %}
14
15     {% htmlcontent notifications/base.html %}
16         <p style="{{ p_style }}">
17             {% blocktrans %}
18             {{ newmember_link }} has just joined {{ app_name }}. You can visit {{ newmember_name }}'s profile using the following link: <br />
19             <a href="{{ app_url }}{{ newmember_url }}">{{ newmember_name }} profile</a>
20             {% endblocktrans %}
21         </p>
22     {% endhtmlcontent %}
23
24 {% textcontent notifications/base_text.html %}
25 {% blocktrans %}
26 {{ newmember_name }} has just joined {{ app_name }}. You can visit {{ newmember_name }}'s profile using the following url: <br />
27 {{ app_url }}{{ newmember_url }}
28 {% endblocktrans %}
29 {% endtextcontent %}
30
31 {% endemail %}
32