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 ++-- 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 app/views/pages/privacy.scala.html create mode 100644 app/views/pages/terms.scala.html (limited to 'app') 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 -- cgit v1.2.3