From c18253114988f1f001e4eacba0ddde9b17d78ab7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 20 Dec 2011 00:07:07 +0000 Subject: [PATCH] Allow a special ODBL message to be displayed at login --- app/controllers/user_controller.rb | 2 ++ config/locales/en.yml | 1 + 2 files changed, 3 insertions(+) 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" -- 2.43.2