From f59d8bae97df1451d8c126c7eed9b0eb7afa4834 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 28 Nov 2011 12:18:53 +0000 Subject: [PATCH] Rails3: view: html_safe for login user link git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7966 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/layouts/base.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index 26a4b9478..6673b4944 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -28,7 +28,10 @@
<%= render_menu :account_menu -%>
- <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %> + <%= content_tag( + 'div', + "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, + :id => 'loggedas') if User.current.logged? %> <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%> -- 2.39.5