diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-04 09:37:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-04 09:37:28 +0000 |
commit | 52c1718ee8d32f9103192e4a16622ec16de67720 (patch) | |
tree | 55d8144acca90753095484a0db65d3fbebdbd96b /app/views/account | |
parent | 8b180aa606706a67201d1bc3adbafe824827bf5a (diff) | |
download | redmine-52c1718ee8d32f9103192e4a16622ec16de67720.tar.gz redmine-52c1718ee8d32f9103192e4a16622ec16de67720.zip |
added a setting option to disable "password lost" functionality
git-svn-id: http://redmine.rubyforge.org/svn/trunk@231 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account')
-rw-r--r-- | app/views/account/login.rhtml | 10 |
1 files changed, 8 insertions, 2 deletions
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 @@ <p><center><input type="submit" name="login" value="<%=l(:button_login)%> »" class="primary" /></center> <% end %>
-<br><% if Setting.self_registration? %><%= link_to l(:label_register), :action => 'register' %> |<% end %>
-<%= link_to l(:label_password_lost), :action => 'lost_password' %></p> +<br>
+<% 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(" | ") %>
+</p>
+ </div>
</center>
\ No newline at end of file |