X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/19af2f15e6eb1d0ebae23433a8d2555186d96835..64b2d51a7d52a03c37bc7c35fa90e111e257fd93:/forum/skins/default/templates/notifications/feedback.html diff --git a/forum/skins/default/templates/notifications/feedback.html b/forum/skins/default/templates/notifications/feedback.html index 575afd5..ec4d211 100644 --- a/forum/skins/default/templates/notifications/feedback.html +++ b/forum/skins/default/templates/notifications/feedback.html @@ -1,28 +1,47 @@ -{% extends "email_base.html" %} -{% load i18n %} -{% load extra_tags %} - -{% block content %} -

{% spaceless %} - {% blocktrans with settings.APP_SHORT_NAME as site_title %} - Hello, this is a {{site_title}} forum feedback message - {% endblocktrans %} - {% endspaceless %}

- -

- {% trans "Sender" %}: - {% if user.is_authenticated %} - {{ user.username }}
{% trans "email" %}:{{ user.email }} - {% else %} - {% if name %}{{ name }}{% else %}{% trans "anonymous" %}{% endif %} - {% if email %}{% trans "email" %}:{{ email }}{% endif %} - {% endif %} -
- ip: {{ ip }} -

- -
+{% load i18n extra_tags email_tags %} + +{% declare %} + prefix = settings.EMAIL_SUBJECT_PREFIX + app_name = settings.APP_SHORT_NAME + + exclude_greeting = True + exclude_finetune = True +{% enddeclare %} + +{% email %} + {% subject %}{% blocktrans %}{{ prefix }} Feedback message from {{ app_name }}{% endblocktrans %}{% endsubject %} + + {% htmlcontent notifications/base.html %} +

+ {% trans "Sender" %}: + {% if user.is_authenticated %} + {{ user.username }}
{% trans "email" %}:{{ user.email }} + {% else %} + {% if name %}{{ name }}{% else %}{% trans "anonymous" %}{% endif %} + {% if email %}{% trans "email" %}:{{ email }}{% endif %} + {% endif %} +
+ ip: {{ ip }} +

+ +
{% trans "Message body:" %} {{ message }} -
+
+ + {% endhtmlcontent %} + +{% textcontent notifications/base_text.html %} +{% if user.is_authenticated %} +{% trans "Sender" %}: {{ user.username }} +{% trans "email" %}: {{ user.email }} +{% else %} +{% trans "Sender" %}: {% if name %}{{ name }}{% else %}{% trans "anonymous" %}{% endif %} +{% if email %}{% trans "email" %}: {{ email }}{% endif %} +{% endif %} +ip: {{ ip }} + +{% trans "Message body:" %} {{ message }} +{% endtextcontent %} + +{% endemail %} -{% endblock %}