diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-03-17 17:30:34 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-03-24 13:07:51 +0000 |
commit | a00067262fd7171a39e74a4ebcd75a5758e12ee6 (patch) | |
tree | 1f43df2e3e4c522f4feb1b1f689843785597dfe0 /app/controllers/track_controller.rb | |
parent | aec70771b7029f8c312e779a6e7fa6d5537abbed (diff) |
Add notices for subscribing to something.
These notices are complete sentences, not composed on the fly, so should
be easier to translate.
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r-- | app/controllers/track_controller.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb index a3a1ec42c..c861971bd 100644 --- a/app/controllers/track_controller.rb +++ b/app/controllers/track_controller.rb @@ -130,11 +130,7 @@ class TrackController < ApplicationController @track_thing.track_medium = 'email_daily' @track_thing.tracking_user_id = @user.id @track_thing.save! - if @user.receive_email_alerts - flash[:notice] = _('You will now be emailed updates about {{track_description}}. <a href="{{change_email_alerts_url}}">Prefer not to receive emails?</a>', :track_description => @track_thing.params[:list_description], :change_email_alerts_url => url_for(:controller => "user", :action => "wall", :url_name => @user.url_name)) - else - flash[:notice] = _('You are now <a href="{{wall_url_user}}">following</a> updates about {{track_description}}', :track_description => @track_thing.params[:list_description], :wall_url_user => url_for(:controller => "user", :action => "wall", :url_name => @user.url_name)) - end + flash[:notice] = render_to_string(:partial => 'track_set').html_safe return true end |