-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multi-part e-mail messages
- Loading branch information
1 parent
98dc23b
commit fe09200
Showing
5 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
fluent_comments/templates/comments/comment_notification_email.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% autoescape off %} | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
|
||
<title>{{ site }}: New comment</title> | ||
|
||
<style type="text/css"> | ||
span.preheader { display: none !important; } | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<span class="preheader">Posted by: {{ comment.user_name|default:comment.user }}</span> | ||
|
||
<div> | ||
A new comment has been posted on your site "{{ site }}", to the page entitled | ||
<a target="_blank" href="{{ request.scheme }}://{{ site.domain }}{{ content_object.get_absolute_url }}">{{ content_object }}</a>. | ||
</div> | ||
|
||
<br> | ||
|
||
{% if comment.title %} | ||
<div>Title: <strong>{{ comment.title }}</strong></div> | ||
{% endif %} | ||
<div>Name: <strong>{{ comment.user_name|default:comment.user }}</strong></div> | ||
<div>Email: <strong>{{ comment.user_email }}</strong></div> | ||
<div>Homepage: <strong>{{ comment.user_url }}</strong></div> | ||
<div>Moderated: <strong>{{ comment.is_public|yesno:'no,yes' }}</strong></div> | ||
|
||
<div> | ||
Comment:<br> | ||
<strong>{{ comment.comment }}</strong> | ||
</div> | ||
|
||
<hr> | ||
|
||
<div>You have the following options available:</div> | ||
<ul> | ||
<li><a target="_blank" href="{{ request.scheme }}://{{ site.domain }}{{ comment.get_absolute_url }}">View comment</a></li> | ||
<li><a target="_blank" href="{{ request.scheme }}://{{ site.domain }}{% url 'comments-flag' comment.pk %}">Flag comment</a></li> | ||
<li><a target="_blank" href="{{ request.scheme }}://{{ site.domain }}{% url 'comments-delete' comment.pk %}">Delete comment</a></li> | ||
</ul> | ||
|
||
</body> | ||
</html> | ||
{% endautoescape %} |