X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/79276fb43abc429cd5515f81005281e303a16dd8..9cb8311f02e1bd0e2188e3b1db623400aaf8da47:/app/views/user/terms.html.erb?ds=sidebyside diff --git a/app/views/user/terms.html.erb b/app/views/user/terms.html.erb index cd8da54da..3e93ff20c 100644 --- a/app/views/user/terms.html.erb +++ b/app/views/user/terms.html.erb @@ -13,7 +13,7 @@ :before => update_page do |page| page.replace_html 'contributorTerms', image_tag('searching.gif') end, - :url => {:legale => legale, :has_decline => params.has_key?(:user)} + :url => {:legale => legale, :has_decline => @user.new_record?} ) %> <%= label_tag "legale_#{legale}", t('user.terms.legale_names.' + name) %> @@ -22,7 +22,7 @@ <% end %>
<%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %> - <% if params[:user] %> + <% if @user.new_record? %> <%= hidden_field('user', 'email') %> <%= hidden_field('user', 'email_confirmation') %> <%= hidden_field('user', 'display_name') %> @@ -42,7 +42,7 @@ <%= hidden_field('user', 'openid_url') %> <% end %>