Changeset - 6bfd617e99a2
[Not reviewed]
0 1 2
Luke Hatcher - 12 years ago 2012-08-27 18:12:19
lukeman@gmail.com
add message to reviewers when proposal is updated
3 files changed with 19 insertions and 0 deletions:
0 comments (0 inline, 0 general)
symposion/proposals/views.py
Show inline comments
...
 
@@ -189,2 +189,12 @@ def proposal_edit(request, pk):
 
            form.save()
 
            if hasattr(proposal, "reviews"):
 
                for review in proposal.reviews.distinct("user"):
 
                    ctx = {
 
                        "user": request.user,
 
                        "proposal": proposal,
 
                    }
 
                    send_email(
 
                        [review.user.email], "proposal_updated",
 
                        context=ctx
 
                    )
 
            messages.success(request, "Proposal updated.")
symposion/templates/emails/proposal_updated/message.html
Show inline comments
 
new file 100644
 
{% load account_tags %}
 
<p>
 
    <b>{% user_display user %}</b> has made changes to <b>{{ proposal.title }}</b> which you have previously reviewed.
 
</p>
 
<p>
 
    {% url review_detail proposal.pk as detail_url %}
 
    View the latest version of the proposal online at <a href="http://{{ current_site }}{{ detail_url }}">http://{{ current_site }}{{ detail_url }}</a>
 
</p>
...
 
\ No newline at end of file
symposion/templates/emails/proposal_updated/subject.txt
Show inline comments
 
new file 100644
 
{% load account_tags %}"{{ proposal.title }}" has been updated by {% user_display user %}
...
 
\ No newline at end of file
0 comments (0 inline, 0 general)