X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/58653f8b9d90c9f0a2f44d026b0ec84574f6bc9a..b63ce5d460cf794602aa7996cdd857dc39faa3d9:/app/views/user/new.html.erb diff --git a/app/views/user/new.html.erb b/app/views/user/new.html.erb index 4e3f4428d..a829773f0 100644 --- a/app/views/user/new.html.erb +++ b/app/views/user/new.html.erb @@ -1,6 +1,6 @@

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

-<% if Acl.find_by_address(request.remote_ip, :conditions => {:k => "no_account_creation"}) %> +<% if Acl.address(request.remote_ip).where(:k => "no_account_creation").exists? %>

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

@@ -12,7 +12,7 @@ <%= error_messages_for 'user' %> -<% form_tag :action => 'terms' do %> +<%= form_tag :action => 'terms' do %> <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %> @@ -26,7 +26,7 @@ - + @@ -41,9 +41,9 @@ - + - + @@ -59,7 +59,7 @@ @@ -68,23 +68,39 @@ - +
<%= t 'user.new.not displayed publicly' %><%= raw(t 'user.new.not displayed publicly') %>
 
 
<%= t 'user.new.openid', :logo => openid_logo %><%= text_field(:user, :openid_url, { :size => 50, :maxlength => 255, :tabindex => 4, :value => params[:openid], :class => "openid_url" }) %><%= text_field(:user, :openid_url, { :id => "openid_url", :size => 50, :maxlength => 255, :tabindex => 4, :value => params[:openid], :class => "openid_url" }) %>
 
- <%= link_to_function(t('user.new.use openid', :logo => openid_logo)) { |page| page.hide 'openid_prompt'; page.show 'openid_spacer', 'openid_url', 'openid_note' } %> + <%= link_to_function(raw(t('user.new.use openid', :logo => openid_logo)), "enableOpenID()") %> <%= t 'user.new.openid no password' %>
<%= submit_tag t('user.new.continue'), :tabindex => 6 %><%= submit_tag t('user.new.continue'), :tabindex => 6 %>
<% end %> -<%= - update_page_tag do |page| - if params[:openid] or (@user and @user.openid_url) - page[:openid_prompt].hide - else - page[:openid_spacer].hide - page[:openid_url].hide - page[:openid_note].hide - end - end -%> - -<%= javascript_include_tag 'https://ethnio.com/remotes/62786' %> + <% end %>