diff options
Diffstat (limited to 'askbot/templates/email/notify_author_about_approved_post.html')
-rw-r--r-- | askbot/templates/email/notify_author_about_approved_post.html | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/askbot/templates/email/notify_author_about_approved_post.html b/askbot/templates/email/notify_author_about_approved_post.html index 6007f06e..01901cd7 100644 --- a/askbot/templates/email/notify_author_about_approved_post.html +++ b/askbot/templates/email/notify_author_about_approved_post.html @@ -10,14 +10,16 @@ * reply_code (comma-separated list of emails to respond to this message) #} -{%block content %} -{{ reply_separator_line }} -<p>{% trans - post_text = post.text|safe_urlquote, - subject = mailto_link_subject|safe_urlquote, - author_email_signature = author_email_signature|safe_urlquote -%}If you would like to edit by email, please -<a href="mailto:{{ replace_content_address }}?body={{ post_text }}{{ author_email_signature}}&subject={{ subject }}">click here</a>{% endtrans %}</p> +{% block content %} +{% if email_code %} + {{ reply_separator_line }} + <p>{% trans + post_text = post.text|safe_urlquote, + subject = mailto_link_subject|safe_urlquote, + author_email_signature = author_email_signature|safe_urlquote + %}If you would like to edit by email, please + <a href="mailto:{{ replace_content_address }}?body={{ post_text }}{{ author_email_signature}}&subject={{ subject }}">click here</a>{% endtrans %}</p> +{% endif %} <p>{% trans %}Below is a copy of your post:{% endtrans %}</p> {% if post.post_type == 'question' %} <p style="font-size:16px">{{ post.thread.title }}</p> @@ -27,5 +29,7 @@ {%block footer %} {% include "email/footer.html" %} -<p style="{{ macros.fine_print_style() }}">{{ email_code }}</p>{# important #} +{% if email_code %} + <p style="{{ macros.fine_print_style() }}">{{ email_code }}</p>{# important #} +{% endif %} {% endblock %} |