diff options
-rw-r--r-- | app/models/track_thing.rb | 4 | ||||
-rw-r--r-- | app/views/track_mailer/event_digest.rhtml | 4 | ||||
-rw-r--r-- | app/views/user/show.rhtml | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/app/models/track_thing.rb b/app/models/track_thing.rb index deb391423..7616e4990 100644 --- a/app/models/track_thing.rb +++ b/app/models/track_thing.rb @@ -18,7 +18,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: track_thing.rb,v 1.2 2008-04-03 15:29:51 francis Exp $ +# $Id: track_thing.rb,v 1.3 2008-04-03 18:45:01 francis Exp $ class TrackThing < ActiveRecord::Base belongs_to :user, :foreign_key => 'tracking_user_id' @@ -53,7 +53,7 @@ class TrackThing < ActiveRecord::Base if self.track_type == 'request_updates' @params = { :title => "Track the request '" + CGI.escapeHTML(self.info_request.title) + "'", - :describe => "The request '" + CGI.escapeHTML(self.info_request.title) + "'", + :describe => "the request '" + CGI.escapeHTML(self.info_request.title) + "'", :web => "To follow updates to the request '" + CGI.escapeHTML(self.info_request.title) + "'", :email => "Then you will be emailed whenever the request '" + CGI.escapeHTML(self.info_request.title) + "' is updated.", :email_subject => "Confirm you want to follow updates to the request '" + CGI.escapeHTML(self.info_request.title) + "'", diff --git a/app/views/track_mailer/event_digest.rhtml b/app/views/track_mailer/event_digest.rhtml index 856fdfb52..7c08fa026 100644 --- a/app/views/track_mailer/event_digest.rhtml +++ b/app/views/track_mailer/event_digest.rhtml @@ -2,8 +2,8 @@ # Construct the main text of the mail main_text = '' for track_thing, alert_results in @email_about_things - main_text += track_thing.params[:describe] + "\n" - main_text += ("=" * track_thing.params[:describe].size) + "\n\n" + main_text += "New events for " + track_thing.params[:describe] + "\n" + main_text += ("=" * ("New events for ".size + track_thing.params[:describe].size)) + "\n\n" for result in alert_results.reverse if result.class.to_s == "InfoRequestEvent" event = result diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml index be89d3899..474834ae9 100644 --- a/app/views/user/show.rhtml +++ b/app/views/user/show.rhtml @@ -29,7 +29,7 @@ <ul> <% for track_thing in @display_user.track_things %> - <li><%= track_thing.params[:describe] %></li> + <li><%= track_thing.params[:describe].capitalize %></li> <% end %> </ul> <% end %> |