Moved login and logout links to ApplicationHelper methods for easier customization.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1030 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-12-30 11:44:46 +00:00
parent 9072753489
commit 97f0da0b1a
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -23,9 +23,9 @@
<% if User.current.logged? %>
<%=l(:label_logged_as)%> <%= User.current.login %> -
<%= link_to l(:label_my_account), { :controller => 'my', :action => 'account' }, :class => 'myaccount' %>
<%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => 'logout' %>
<%= link_to_signout %>
<% else %>
<%= link_to l(:label_login), { :controller => 'account', :action => 'login' }, :class => 'signin' %>
<%= link_to_signin %>
<%= link_to(l(:label_register), { :controller => 'account',:action => 'register' }, :class => 'register') if Setting.self_registration? %>
<% end %>
</div>