Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for subscribing persons in the database to a mailinglist.
- Loading branch information
Showing
6 changed files
with
68 additions
and
53 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
{% extends "email_base.tpl" %} | ||
|
||
{% block title %}{{ m.rsc[id].title }}{% endblock %} | ||
{% block title %}{{ id.title }}{% endblock %} | ||
|
||
{% block body %} | ||
<p style="text-align: center"><a href="{{ m.rsc[id].page_url }}">{_ Click here when you can’t read the message below. _}</a></p> | ||
<p style="text-align: center"><a href="http://{{ m.site.hostname }}{{ id.page_url }}">{_ Click here when you can’t read the message below. _}</a></p> | ||
|
||
<hr/> | ||
|
||
<h1>{{ m.rsc[id].title }}</h1> | ||
<h1>{{ id.title }}</h1> | ||
|
||
{% if m.rsc[id].body %} | ||
<p><strong>{{ m.rsc[id].summary|linebreaksbr }}</strong></p> | ||
{{ m.rsc[id].body }} | ||
{% if id.body %} | ||
{% if id.summary %} | ||
<p><strong>{{ id.summary|linebreaksbr }}</strong></p> | ||
{% endif %} | ||
{{ id.body }} | ||
{% else %} | ||
<p>{{ m.rsc[id].summary|linebreaksbr }}</p> | ||
<p>{{ id.summary|linebreaksbr }}</p> | ||
{% endif %} | ||
|
||
<p><a href="{{ m.rsc[id].page_url }}">{_ Read this page on the web. _}</a></p> | ||
|
||
<hr/> | ||
|
||
{% with m.mailinglist.subscription[list_id][email] as sub %} | ||
<p style="color: #666">{_ You received this mail because you are subscribed to the mailing list _} <a href="{{ m.rsc[list_id].page_url }}">{{ m.rsc[list_id].title }}</a>. <a href="{% url mailinglist_unsubscribe confirm_key=sub.confirm_key %}">{_ Please unsubscribe _}</a> {_ when you don't want to receive any further mail from this list. _} </p> | ||
{% endwith %} | ||
<p><a href="http://{{ m.site.hostname }}{{ m.rsc[id].page_url }}">{_ Read this page on the web. _}</a></p> | ||
|
||
{% include "_mailing_footer.tpl" %} | ||
{% endblock %} |