]> source.dussan.org Git - redmine.git/commitdiff
Rails3: view: html_safe for login user link
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 28 Nov 2011 12:18:53 +0000 (12:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 28 Nov 2011 12:18:53 +0000 (12:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7966 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/layouts/base.html.erb

index 26a4b94788901da264d18ab8615dbabedff825fc..6673b494473b97968ca99066a05f9657024dba1a 100644 (file)
     <div id="account">
         <%= render_menu :account_menu -%>
     </div>
-    <%= 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? -%>
 </div>