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) { + +