X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/6f9524a34c490d43db43a1ae4b44b40d77ce691a..01d2edfa97f4edd4243a06aef8ee99faaade47ab:/forum/skins/default/templates/notifications/newmember.html?ds=sidebyside diff --git a/forum/skins/default/templates/notifications/newmember.html b/forum/skins/default/templates/notifications/newmember.html index 149b9a9..1c385b3 100644 --- a/forum/skins/default/templates/notifications/newmember.html +++ b/forum/skins/default/templates/notifications/newmember.html @@ -1,17 +1,32 @@ -{% extends "email_base.html" %} -{% load i18n %} -{% load extra_tags %} - -{% block content %} -

{% trans "Hello" %} {% user_var username %},

- -

- {% blocktrans with newmember.username as newmember_name and settings.APP_SHORT_NAME as app_title and settings.APP_URL as app_url and newmember.get_profile_url as newmember_url %} - {{ newmember_name }} has just joined {{ app_title }}. You can visit {{ newmember_name }}'s profile using the following link:
- {{ newmember_name }} profile - {% endblocktrans %} -

- -

{% blocktrans %}Sincerely,
- Forum Administrator{% endblocktrans %}

-{% endblock %} +{% load i18n extra_tags email_tags %} + +{% declare %} + prefix = settings.EMAIL_SUBJECT_PREFIX + app_name = settings.APP_SHORT_NAME + app_url = settings.APP_URL + newmember_name = newmember.username + newmember_url = newmember.get_profile_url() + newmember_link = html.objlink(newmember, style=settings.EMAIL_ANCHOR_STYLE) +{% enddeclare %} + +{% email %} + {% subject %}{% blocktrans %}{{ prefix }}{{ newmember_name }} is a new member on {{ app_name }}{% endblocktrans %}{% endsubject %} + + {% htmlcontent notifications/base.html %} +

+ {% blocktrans %} + {{ newmember_link }} has just joined {{ app_name }}. + View {{ newmember_name }}'s profile. + {% endblocktrans %} +

+ {% endhtmlcontent %} + +{% textcontent notifications/base_text.html %} +{% blocktrans %} +{{ newmember_name }} has just joined {{ app_name }}. You can visit {{ newmember_name }}'s profile using the following url: +{{ app_url }}{{ newmember_url }} +{% endblocktrans %} +{% endtextcontent %} + +{% endemail %} +