From 2216369bbfea9d38bfdddcd721d7aa5bf0ddd5d9 Mon Sep 17 00:00:00 2001 From: Andromeda Yelton Date: Tue, 18 Sep 2012 10:16:08 -0400 Subject: [PATCH] include clickable links, make grammar singular/plural sensitive --- core/signals.py | 3 ++- frontend/templates/notification/new_wisher/full.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/signals.py b/core/signals.py index 919289aa..ae82d8a3 100644 --- a/core/signals.py +++ b/core/signals.py @@ -222,7 +222,8 @@ def handle_wishlist_added(supporter, work, **kwargs): if claim: notification.queue([claim[0].user], "new_wisher", { 'supporter': supporter, - 'work': work + 'work': work, + 'base_url': settings.BASE_URL, }, True) from regluit.core.tasks import emit_notifications diff --git a/frontend/templates/notification/new_wisher/full.txt b/frontend/templates/notification/new_wisher/full.txt index 56b6fe04..c84f7c27 100644 --- a/frontend/templates/notification/new_wisher/full.txt +++ b/frontend/templates/notification/new_wisher/full.txt @@ -1,4 +1,4 @@ -{{ supporter }} has wished for a work you hold rights to, {{ work.title }}. Hooray! There are now {{ work.num_wishes }} people wishing for this work. +{{ supporter }} ({{ base_url }}{% url supporter supporter.username %}) has wished for a work you hold rights to, {{ work.title }} ({{ base_url }}{% url work work.id %}). Hooray! {% with work.num_wishes as num_wishes %}{% if num_wishes = 1 %}Your first ungluer!{% else %}There are now {{ num_wishes }} people wishing for this work.{% endif %}{% endwith %} The Unglue.it team \ No newline at end of file