aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-05-16 12:54:19 +0000
committerfrancis <francis>2008-05-16 12:54:19 +0000
commit15ae4bb6d0ac8bd21a024ee7b5a3a7115afef892 (patch)
treea6292f915adfa55a0f348a8025ee68ddadb2f2d3
parentd04cebfd02d5424504c6dfd4d8f1c036fb909bd3 (diff)
Highlight titles in email alerts.
-rw-r--r--app/views/track_mailer/event_digest.rhtml2
-rw-r--r--todo.txt2
2 files changed, 1 insertions, 3 deletions
diff --git a/app/views/track_mailer/event_digest.rhtml b/app/views/track_mailer/event_digest.rhtml
index f74be2854..bcc7a9c17 100644
--- a/app/views/track_mailer/event_digest.rhtml
+++ b/app/views/track_mailer/event_digest.rhtml
@@ -12,7 +12,7 @@
# Request title - only add title if we're not tracking a request.
# e.g. -- Address and opening times of Post Office branches --
if track_thing.info_request.nil?
- main_text += "-- " + event.info_request.title + " --\n"
+ main_text += "-- " + highlight_words(event.info_request.title, @highlight_words, false) + " --\n"
end
# e.g. Julian Burgess sent a request to Royal Mail Group (15 May 2008)
diff --git a/todo.txt b/todo.txt
index ccb21528b..fa5b3dec9 100644
--- a/todo.txt
+++ b/todo.txt
@@ -39,9 +39,7 @@ Or just look at referrers as Julian says
Test: In email alerts, show request heading somewhere
Add test code for search track emails
-Highlight words in them with *
and also highling in RSS
- and highlight title
Check test code coverage again - do we have all models