From 52c1718ee8d32f9103192e4a16622ec16de67720 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 4 Feb 2007 09:37:28 +0000 Subject: added a setting option to disable "password lost" functionality git-svn-id: http://redmine.rubyforge.org/svn/trunk@231 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/account/login.rhtml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/views/account') diff --git a/app/views/account/login.rhtml b/app/views/account/login.rhtml index a5d31c2ee..9f1e3dc63 100644 --- a/app/views/account/login.rhtml +++ b/app/views/account/login.rhtml @@ -12,7 +12,13 @@

<% end %> -
<% if Setting.self_registration? %><%= link_to l(:label_register), :action => 'register' %> |<% end %> -<%= link_to l(:label_password_lost), :action => 'lost_password' %>

+
+<% links = [] + links << link_to(l(:label_register), :action => 'register') if Setting.self_registration? + links << link_to(l(:label_password_lost), :action => 'password_lost') if Setting.password_lost? +%> +<%= links.join(" | ") %> +

+ \ No newline at end of file -- cgit v1.2.3