X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/52e5fa6ad78f375cec5a207a123a4aa3939c8ddf..ff73d1225554de6f6ec2aee7bcd9faa527c0d552:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 2bf6f5281..71d3e875b 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,12 +1,6 @@ -

<%= 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 %> +<% content_for :heading do %> +

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

+<% end %>

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

@@ -59,7 +53,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' %> @@ -96,11 +90,13 @@ function disableOpenID() $("#openid_url").prop("disabled", true); } -<% if params[:openid] or (@user and @user.openid_url and not @user.openid_url.empty?) -%> -enableOpenID(); -<% else -%> -disableOpenID(); -<% end -%> - +$(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 -%> +}); +