aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-02-08 11:19:20 +0100
committerPacien TRAN-GIRARD2015-02-08 11:19:20 +0100
commit1dd7d1dd1a796592b4448eba878ddcae8e063407 (patch)
tree154022c304af79dc42512e7932baa5b3aef712bc
parentfd5ae4b50e326097194280ad05f19445531338b4 (diff)
downloadminibay-1dd7d1dd1a796592b4448eba878ddcae8e063407.tar.gz
Add terms of use and privacy policy static pages
-rw-r--r--app/controllers/Application.scala8
-rw-r--r--app/views/pages/privacy.scala.html15
-rw-r--r--app/views/pages/terms.scala.html16
-rw-r--r--app/views/templates/main.scala.html4
-rw-r--r--conf/routes4
5 files changed, 43 insertions, 4 deletions
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 {
27 Ok(views.html.pages.pepalHomepage()) 27 Ok(views.html.pages.pepalHomepage())
28 } 28 }
29 29
30 def terms = Auth { implicit request =>
31 Ok(views.html.pages.terms())
32 }
33
34 def privacy = Auth { implicit request =>
35 Ok(views.html.pages.privacy())
36 }
37
30} 38}
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 @@
1@()(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token)
2
3@templates.ebe("Privacy policy")(request.account) {
4
5 <div class="pure-g">
6 <div class="pure-u-1 pure-u-lg-1-2 centered">
7 <h2>Privacy policy</h2>
8 <ul>
9 <li>We read your passwords.</li>
10 <li>But we do not use Google Analytics or any third-party nasty thing.</li>
11 </ul>
12 </div>
13 </div>
14
15}
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 @@
1@()(implicit request: AuthRequest[AnyContent], flash: Flash, token: play.filters.csrf.CSRF.Token)
2
3@templates.ebe("Terms of use")(request.account) {
4
5 <div class="pure-g">
6 <div class="pure-u-1 pure-u-lg-1-2 centered">
7 <h2>Terms of use</h2>
8 <ul>
9 <li>Do not use this application.</li>
10 <li>You should not be reading this.</li>
11 <li>Close this window now.</li>
12 </ul>
13 </div>
14 </div>
15
16}
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 @@
60 <span class="copyright">&copy; @logo Inc. All rights reserved.</span> 60 <span class="copyright">&copy; @logo Inc. All rights reserved.</span>
61 61
62 <span class="footer-links"> 62 <span class="footer-links">
63 <a href="@routes.Application.index()">Terms of use</a> 63 <a href="@routes.Application.terms()">Terms of use</a>
64 - 64 -
65 <a href="@routes.Application.index()">Privacy policy</a> 65 <a href="@routes.Application.privacy()">Privacy policy</a>
66 </span> 66 </span>
67 </footer> 67 </footer>
68 68
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
8 8
9# Home page 9# Home page
10GET / controllers.Application.index 10GET / controllers.Application.index
11GET /terms controllers.Application.index 11GET /terms controllers.Application.terms
12GET /privacy controllers.Application.index 12GET /privacy controllers.Application.privacy
13 13
14# User account 14# User account
15GET /login controllers.Authentication.login 15GET /login controllers.Authentication.login