diff options
author | francis <francis> | 2008-09-14 01:44:49 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-14 01:44:49 +0000 |
commit | 46b67f840244a6b3e10527645a18c7c97c06ccba (patch) | |
tree | 9edb17bd6c8f72aef4ed836944062e45cfd9b67b /app/controllers/user_controller.rb | |
parent | 6515b7a3714115bfa2158b9faebb7eb92543415d (diff) |
Don't show page on first page.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r-- | app/controllers/user_controller.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index a194b4f36..88169d1e4 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -4,7 +4,7 @@ # 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.57 2008-09-14 01:40:29 francis Exp $ +# $Id: user_controller.rb,v 1.58 2008-09-14 01:44:49 francis Exp $ class UserController < ApplicationController # Show page about a user @@ -25,7 +25,11 @@ class UserController < ApplicationController # Use search query for this so can collapse and paginate easily @xapian_requests = perform_search([InfoRequestEvent], 'requested_by:' + @display_user.url_name, 'newest', 'request_collapse') @xapian_comments = perform_search([InfoRequestEvent], 'commented_by:' + @display_user.url_name, 'newest', nil) - @page_desc = " (page " + @page.to_s + ")" + if (@page > 1) + @page_desc = " (page " + @page.to_s + ")" + else + @page_desc = "" + end # Track corresponding to this page @track_thing = TrackThing.create_track_for_user(@display_user) |