From: Tom Hughes Date: Tue, 20 Dec 2011 00:07:07 +0000 (+0000) Subject: Allow a special ODBL message to be displayed at login X-Git-Tag: live~5938 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c18253114988f1f001e4eacba0ddde9b17d78ab7?hp=90f119d97612397564d8e93776a703c687d362d8 Allow a special ODBL message to be displayed at login --- diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index c9983cc85..89f35a899 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -282,6 +282,8 @@ class UserController < ApplicationController else password_authentication(params[:username], params[:password]) end + elsif params[:notice] + flash.now[:notice] = t "user.login.notice_#{params[:notice]}" elsif flash[:notice].nil? flash.now[:notice] = t 'user.login.notice' end diff --git a/config/locales/en.yml b/config/locales/en.yml index 955f4a97c..7c0f408b4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1545,6 +1545,7 @@ en: webmaster: webmaster auth failure: "Sorry, could not log in with those details." notice: "Find out more about OpenStreetMap's upcoming license change (translations) (discussion)" + notice_terms: "OpenStreetMap is moving to a new licence on 1st April 2012. It's just as open as our current one, but the legal bits are much better suited to our map database. We'd love to keep your contributions in OpenStreetMap, but we can only do so if you agree to let us distribute them under the new licence. Otherwise, we'll have to remove them from the database.

Please log in, then take a few seconds to review and accept the new terms. Thank you!" openid missing provider: "Sorry, could not contact your OpenID provider" openid invalid: "Sorry, your OpenID seems to be malformed" openid_logo_alt: "Log in with an OpenID"