From 1dd7d1dd1a796592b4448eba878ddcae8e063407 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 8 Feb 2015 11:19:20 +0100 Subject: Add terms of use and privacy policy static pages --- app/controllers/Application.scala | 8 ++++++++ app/views/pages/privacy.scala.html | 15 +++++++++++++++ app/views/pages/terms.scala.html | 16 ++++++++++++++++ app/views/templates/main.scala.html | 4 ++-- conf/routes | 4 ++-- 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 app/views/pages/privacy.scala.html create mode 100644 app/views/pages/terms.scala.html diff --git a/app/controllers/Application.scala b/app/controllers/Application.scala index 6e6acd2..93bba51 100644 --- a/app/controllers/Application.scala +++ b/app/controllers/Application.scala @@ -27,4 +27,12 @@ object Application extends Controller { Ok(views.html.pages.pepalHomepage()) } + def terms = Auth { implicit request => + Ok(views.html.pages.terms()) + } + + def privacy = Auth { implicit request => + Ok(views.html.pages.privacy()) + } + } diff --git a/app/views/pages/privacy.scala.html b/app/views/pages/privacy.scala.html new file mode 100644 index 0000000..dd6898a --- /dev/null +++ b/app/views/pages/privacy.scala.html @@ -0,0 +1,15 @@ +@()(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token) + +@templates.ebe("Privacy policy")(request.account) { + +
+
+

Privacy policy

+ +
+
+ +} diff --git a/app/views/pages/terms.scala.html b/app/views/pages/terms.scala.html new file mode 100644 index 0000000..3ccadc7 --- /dev/null +++ b/app/views/pages/terms.scala.html @@ -0,0 +1,16 @@ +@()(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token) + +@templates.ebe("Terms of use")(request.account) { + +
+
+

Terms of use

+ +
+
+ +} diff --git a/app/views/templates/main.scala.html b/app/views/templates/main.scala.html index 5ec9da2..dc71264 100644 --- a/app/views/templates/main.scala.html +++ b/app/views/templates/main.scala.html @@ -60,9 +60,9 @@ © @logo Inc. All rights reserved. - Terms of use + Terms of use - - Privacy policy + Privacy policy diff --git a/conf/routes b/conf/routes index f35a99b..e8a880e 100644 --- a/conf/routes +++ b/conf/routes @@ -8,8 +8,8 @@ GET /pepal controllers.Application.pepal # Home page GET / controllers.Application.index -GET /terms controllers.Application.index -GET /privacy controllers.Application.index +GET /terms controllers.Application.terms +GET /privacy controllers.Application.privacy # User account GET /login controllers.Authentication.login -- cgit v1.2.3