X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d70fd8ab1a07d842603b820d8ce7d0e5be9f976d..367303f6d8f708ff0e074c02264f2508f4c19326:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 104a88959..f45072a92 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,13 +1,5 @@

<%= t 'user.new.heading' %>

-<% if Acl.address(request.remote_ip).where(:k => "no_account_creation").exists? %> - -

<%= t 'user.new.no_auto_account_create' %>

- -

<%= t 'user.new.contact_webmaster' %>

- -<% else %> -

<%= t 'user.new.fill_form' %>

<%= error_messages_for 'user' %> @@ -59,7 +51,7 @@ - <%= link_to_function(raw(t('user.new.use openid', :logo => openid_logo)), "enableOpenID()") %> + <%= link_to raw(t("user.new.use openid", :logo => openid_logo)), "#", :id => "openid_enable" %> <%= t 'user.new.openid no password' %> @@ -76,31 +68,33 @@ +$(document).ready(function () { + $("#openid_enable").click(enableOpenID); -<% end %> + <% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%> + enableOpenID(); + <% else -%> + disableOpenID(); + <% end -%> +}); +