aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/user_controller.rb4
-rw-r--r--app/views/user/show.rhtml2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index e2ef4898d..c6eaeea68 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -4,10 +4,10 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: user_controller.rb,v 1.53 2008-08-20 22:16:49 francis Exp $
+# $Id: user_controller.rb,v 1.54 2008-08-21 01:26:11 francis Exp $
class UserController < ApplicationController
- # Show page about a set of users with same url name
+ # Show page about a user
def show
if MySociety::Format.simplify_url_part(params[:url_name], 32) != params[:url_name]
redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name], 32)
diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml
index 8bca14097..8eef38adc 100644
--- a/app/views/user/show.rhtml
+++ b/app/views/user/show.rhtml
@@ -30,7 +30,7 @@
</p>
<% end %>
- <% track_things = TrackThing.find(:all, :conditions => ["tracking_user_id = ? and track_medium = ?", @display_user.id, 'email_daily']) %>
+ <% track_things = TrackThing.find(:all, :conditions => ["tracking_user_id = ? and track_medium = ?", @display_user.id, 'email_daily'], :order => 'created_at desc') %>
<% if @is_you and not track_things.empty? %>
<h2>
Your <%=pluralize(track_things.size, "email subscription") %>