Adds 'registering_with_oauth' boolean to users

Conflicts:
	db/schema.rb

Changes title in finish_signup page

Conflicts:
	config/locales/en.yml
	config/locales/es.yml
This commit is contained in:
kikito
2016-01-19 19:43:54 +01:00
parent 91a16142bf
commit c6c01fc9f2
4 changed files with 46 additions and 0 deletions

View File

@@ -468,3 +468,23 @@ en:
user_permission_verify_info: "* Only for users on Madrid Census."
user_permission_verify_url: verify your account
user_permission_votes: Participate on final voting
omniauth:
finish_signup:
title: "Additional details"
twitter:
sign_in: "Sign in with Twitter"
sign_up: "Sign up with Twitter"
facebook:
sign_in: "Sign in with Facebook"
sign_up: "Sign up with Facebook"
#google_oauth2:
# sign_in: "Sign in with Google"
# sign_up: "Sign up with Google"
legislation:
help:
title: "How I can comment this document?"
text_logged: "Select the text you want to comment and press the button with the pencil."
text: "To comment this document you must %{sign_in} or %{sign_up}. Then select the text you want to comment and press the button with the pencil."
text_sign_in: "login"
text_sign_up: "sign up"
alt: "Select the text you want to comment and press the button with the pencil."

View File

@@ -468,3 +468,23 @@ es:
user_permission_verify_info: "* Sólo usuarios empadronados en el municipio de Madrid."
user_permission_verify_url: verifica tu cuenta
user_permission_votes: Participar en las votaciones finales*
omniauth:
finish_signup:
title: "Detalles adicionales de tu cuenta"
twitter:
sign_in: "Entra con Twitter"
sign_up: "Regístrate con Twitter"
facebook:
sign_in: "Entra con Facebook"
sign_up: "Regístrate con Facebook"
#google_oauth2:
# sign_in: "Entra con Google"
# sign_up: "Regístrate con Google"
legislation:
help:
title: "¿Cómo puedo comentar este documento?"
text_logged: "Selecciona el texto que quieres comentar y pulsa en el botón con el lápiz."
text: "Para comentar este documento debes %{sign_in} o %{sign_up}. Después selecciona el texto que quieres comentar y pulsa en el botón con el lápiz."
text_sign_in: "iniciar sesión"
text_sign_up: "registrarte"
alt: "Selecciona el texto que quieres comentar y pulsa en el botón con el lápiz."

View File

@@ -0,0 +1,5 @@
class AddRegisteringWithOauthToUsers < ActiveRecord::Migration
def change
add_column :users, :registering_with_oauth, :bool, default: false
end
end

View File

@@ -397,6 +397,7 @@ ActiveRecord::Schema.define(version: 20160122153329) do
t.boolean "newsletter", default: false
t.integer "notifications_count", default: 0
t.string "locale"
t.boolean "registering_with_oauth", default: false
end
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree