X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/dff1ade92ec138f339c4391df09c090006907374..19fdf3aa4fdc111f4ce142005e75f4e8f961e91e:/forum/skins/default/templates/notifications/feedback.html?ds=inline diff --git a/forum/skins/default/templates/notifications/feedback.html b/forum/skins/default/templates/notifications/feedback.html index 06b8b84..52aa6ad 100644 --- a/forum/skins/default/templates/notifications/feedback.html +++ b/forum/skins/default/templates/notifications/feedback.html @@ -1,28 +1,37 @@ -{% 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: {{request.META.REMOTE_ADDR}}
-
+{% load i18n extra_tags email_tags %} + +{% declare %} + prefix = html.mark_safe(settings.EMAIL_SUBJECT_PREFIX) + app_name = html.mark_safe(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 %} ++ + {% endhtmlcontent %} + +{% textcontent notifications/base_text.html %} +{% trans "Sender" %}: {% if name %}{{ name|safe }}{% else %}{% trans "anonymous" %}{% endif %} +{% trans "email" %}: {{ email|safe }} +ip: {{ ip }} + +{% trans "Message body:" %} {{ message|safe }} +{% endtextcontent %} + +{% endemail %} -{% endblock %}+ {% trans "Sender" %}:{% if name %}{{ name }}{% else %}{% trans "anonymous" %}{% endif %}
+ +
+ {% trans "email" %}: {{ email }} +
+ ip: {{ ip }} +{% trans "Message body:" %} {{ message }} -+