X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d70fd8ab1a07d842603b820d8ce7d0e5be9f976d..43bfebdd9e83685cbc999f46a3a88e85f9960cbc:/app/views/user/new.html.erb?ds=sidebyside 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 -%> +}); +