aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/track_mailer.rb4
-rw-r--r--app/views/user/show.rhtml2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb
index 9863cbe68..792191bd9 100644
--- a/app/models/track_mailer.rb
+++ b/app/models/track_mailer.rb
@@ -4,12 +4,12 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: track_mailer.rb,v 1.15 2009-03-06 19:50:25 francis Exp $
+# $Id: track_mailer.rb,v 1.16 2009-03-17 23:22:01 francis Exp $
class TrackMailer < ApplicationMailer
def event_digest(user, email_about_things)
post_redirect = PostRedirect.new(
- :uri => main_url(user_url(user)),
+ :uri => main_url(user_url(user)) + "#email_subscriptions",
:user_id => user.id)
post_redirect.save!
unsubscribe_url = confirm_url(:email_token => post_redirect.email_token)
diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml
index f78fcffe0..4e895f2e2 100644
--- a/app/views/user/show.rhtml
+++ b/app/views/user/show.rhtml
@@ -102,7 +102,7 @@
<% end %>
<% if @is_you and not @track_things.empty? %>
- <h2>
+ <h2 id="email_subscriptions">
Your <%=pluralize(@track_things.size, "email subscription") %>
<% if @track_things_grouped.size == 1 %>
<% form_tag :controller => 'track', :action => 'delete_all_type' do %>