From: Toshi MARUYAMA Date: Mon, 28 Nov 2011 12:18:53 +0000 (+0000) Subject: Rails3: view: html_safe for login user link X-Git-Tag: 1.3.0~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f59d8bae97df1451d8c126c7eed9b0eb7afa4834;p=redmine.git 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 --- 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? -%>