diff --git a/bower.json b/bower.json index b187c89eef..dc4c19e27c 100644 --- a/bower.json +++ b/bower.json @@ -27,7 +27,8 @@ "zxcvbn": "https://github.com/lowe/zxcvbn.git", "geonames-server-jquery-plugin": "~0.2", "jquery-galleria": "1.2.9", - "jquery.cookie": "~1.4" + "jquery.cookie": "~1.4", + "joyride": "https://github.com/zurb/joyride/archive/v2.0.0.zip" }, "resolutions": { "jquery": "~1.8.3" diff --git a/lib/Alchemy/Phrasea/Controller/Client/Root.php b/lib/Alchemy/Phrasea/Controller/Client/Root.php index c857d6ad11..dbcd11919b 100644 --- a/lib/Alchemy/Phrasea/Controller/Client/Root.php +++ b/lib/Alchemy/Phrasea/Controller/Client/Root.php @@ -27,16 +27,6 @@ class Root implements ControllerProviderInterface $controllers = $app['controllers_factory']; $controllers->before(function (Request $request) use ($app) { - /** - * /!\/!\/!\/!\/!\/!\/!\/!\/!\ - * - * Client is not longer used - * - * Redirect to production with a nice message - */ - $app['session']->getFlashBag()->add('client_deprecated', ''); - - return $app->redirectPath('prod'); if (!$app['authentication']->isAuthenticated() && null !== $request->query->get('nolog')) { return $app->redirectPath('login_authenticate_as_guest', array('redirect' => 'client')); @@ -301,6 +291,8 @@ class Root implements ControllerProviderInterface */ public function getClient(Application $app, Request $request) { + $app['session']->getFlashBag()->add('step_by_step', ''); + try { \User_Adapter::updateClientInfos($app, 2); } catch (SessionNotFound $e) { diff --git a/templates/web/client/index.html.twig b/templates/web/client/index.html.twig index a55bf38e01..740e33e385 100644 --- a/templates/web/client/index.html.twig +++ b/templates/web/client/index.html.twig @@ -45,6 +45,22 @@
+ + {% if app['phraseanet.configuration']['deprecate-client']|default(true) %} ++ {{ "Pour des raisons techniques cette interface n'est plus maintenue et serta bientôt rendue + inacessible. Nous vous invitons si vous le souhaitez à utiliser production dés maintenant."|trans }} +
+