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
This commit is contained in:
parent
9dfaa562fc
commit
f59d8bae97
|
@ -28,7 +28,10 @@
|
|||
<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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue