Warn of name change on the landing page

This commit is contained in:
gregoirenovel 2018-02-28 16:34:00 +01:00 committed by Mathieu Magnin
parent 67da280fa0
commit b784036a12

View file

@ -12,6 +12,10 @@ class RootController < ApplicationController
return redirect_to manager_root_path
end
if Date.today < Date.new(2018, 03, 31)
flash.now.notice = ["Téléprocédures Simplifiées change de nom et devient demarches-simplifiees.fr, <a href='https://tps.gitbooks.io/tps-documentation/content/changement-de-nom.html' target='_blank'>en savoir plus</a>."]
end
render 'landing'
end