diff options
author | francis <francis> | 2008-05-12 17:55:18 +0000 |
---|---|---|
committer | francis <francis> | 2008-05-12 17:55:18 +0000 |
commit | 3f9b884159482faa58688aacdafd1b2e5a10658d (patch) | |
tree | c657f38b64c1a966b1ca3cc8b4567c62d83283fc /app/controllers/track_controller.rb | |
parent | cfc27cee3a367e2fe09d1c2610795fd7c5202e87 (diff) |
Wording change
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r-- | app/controllers/track_controller.rb | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb index cd459d83e..ebd9c7a30 100644 --- a/app/controllers/track_controller.rb +++ b/app/controllers/track_controller.rb @@ -5,7 +5,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: track_controller.rb,v 1.15 2008-05-12 10:57:43 francis Exp $ +# $Id: track_controller.rb,v 1.16 2008-05-12 17:55:18 francis Exp $ class TrackController < ApplicationController @@ -42,9 +42,21 @@ class TrackController < ApplicationController redirect_to :controller => 'track', :action => 'atom_feed', :track_id => @track_thing.id else if @view.nil? - flash[:notice] = "You are " + ret + " being told about any new requests!" + if ret == 'already' + flash[:notice] = "You are already being told about any new requests!" + elsif ret == 'now' + flash[:notice] = "You will now be told about any new requests!" + else + raise "unknown ret '" + ret + "'" + end elsif @view == 'successful' - flash[:notice] = "You are " + ret + " being told about any successful requests!" + if ret == 'already' + flash[:notice] = "You are already being told about any successful requests!" + elsif ret == 'now' + flash[:notice] = "You will now be told about any successful requests!" + else + raise "unknown ret '" + ret + "'" + end else raise "unknown request list view " + @view.to_s end |