From a70a725316ec8c21522dd921c9a0c863577defe9 Mon Sep 17 00:00:00 2001 From: francis Date: Fri, 3 Oct 2008 17:48:37 +0000 Subject: Give link to user page if logged in user uses contact form. --- app/controllers/help_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/help_controller.rb') diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 15a846e50..0ba7da12d 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: help_controller.rb,v 1.7 2008-07-09 14:12:56 francis Exp $ +# $Id: help_controller.rb,v 1.8 2008-10-03 17:48:37 francis Exp $ class HelpController < ApplicationController @@ -27,7 +27,7 @@ class HelpController < ApplicationController params[:contact][:email], params[:contact][:subject], params[:contact][:message], - (@user ? ("logged in as user " + @user.email) : "not logged in") + @user ) flash[:notice] = "Your message has been sent. Thank you for getting in touch! We'll get back to you soon." redirect_to frontpage_url -- cgit v1.2.3