]> git.openstreetmap.org Git - rails.git/commitdiff
Allow a special ODBL message to be displayed at login
authorTom Hughes <tom@compton.nu>
Tue, 20 Dec 2011 00:07:07 +0000 (00:07 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 20 Dec 2011 00:07:07 +0000 (00:07 +0000)
app/controllers/user_controller.rb
config/locales/en.yml

index c9983cc855807f1fa343ecc1fedc4a5909bb8468..89f35a8996e6cea3c9b20808259ae16b76e8d0b2 100644 (file)
@@ -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
index 955f4a97c142b5ffe68167262fe29c5be5dd7926..7c0f408b4edb050aa751ad4b57c06297a77200b4 100644 (file)
@@ -1545,6 +1545,7 @@ en:
       webmaster: webmaster
       auth failure: "Sorry, could not log in with those details."
       notice: "<a href=\"http://www.osmfoundation.org/wiki/License/We_Are_Changing_The_License\">Find out more about OpenStreetMap's upcoming license change</a> (<a href=\"http://wiki.openstreetmap.org/wiki/ODbL/We_Are_Changing_The_License\">translations</a>) (<a href=\"http://wiki.openstreetmap.org/wiki/Talk:ODbL/Upcoming\">discussion</a>)"
+      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.<br /><br />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"