aboutsummaryrefslogtreecommitdiff
path: root/app/views/templates/main.scala.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/templates/main.scala.html')
-rw-r--r--app/views/templates/main.scala.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/app/views/templates/main.scala.html b/app/views/templates/main.scala.html
index 278b205..5ec9da2 100644
--- a/app/views/templates/main.scala.html
+++ b/app/views/templates/main.scala.html
@@ -1,4 +1,4 @@
1@(logo: Html)(slogan: Html)(title: String)(content: Html)(implicit flash: Flash) 1@(logo: Html)(slogan: Html)(title: String)(accountData: Option[models.Views.Account] = None)(content: Html)(implicit flash: Flash, token: play.filters.csrf.CSRF.Token)
2 2
3<!DOCTYPE html> 3<!DOCTYPE html>
4 4
@@ -22,12 +22,14 @@
22 22
23 <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")"> 23 <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
24 24
25 <script src="@routes.Assets.at("javascripts/konami.js")" type="text/javascript"></script> 25 @if(accountData.isDefined) {
26 <script src="@routes.Assets.at("javascripts/cheat.js")" type="text/javascript"></script> 26 <script src="@routes.Assets.at("javascripts/konami.js")" type="text/javascript"></script>
27 <script src="@routes.Assets.at("javascripts/cheat.js")" type="text/javascript"></script>
28 }
27 29
28 </head> 30 </head>
29 31
30 <body> 32 <body data-token="@token.value">
31 33
32 <div class="disclaimer-bar yellow-bg"> 34 <div class="disclaimer-bar yellow-bg">
33 This is a dummy scholar project! Do not use for real serious business stuff! 35 This is a dummy scholar project! Do not use for real serious business stuff!
@@ -39,14 +41,14 @@
39 <div class="pure-g"> 41 <div class="pure-g">
40 <div class="logo pure-u-1 pure-u-lg-1-2"> 42 <div class="logo pure-u-1 pure-u-lg-1-2">
41 <h1> 43 <h1>
42 <a href="#">@logo</a> 44 <a href="@routes.Application.index()">@logo</a>
43 </h1> 45 </h1>
44 <h2> 46 <h2>
45 <a href="#">@slogan</a> 47 <a href="@routes.Application.index()">@slogan</a>
46 </h2> 48 </h2>
47 </div> 49 </div>
48 50
49 <div class="account-info pure-u-1 pure-u-lg-1-2">@fragments.accountInfos()</div> 51 <div class="account-info pure-u-1 pure-u-lg-1-2">@fragments.accountInfos(accountData)</div>
50 </div> 52 </div>
51 </header> 53 </header>
52 54
@@ -58,9 +60,9 @@
58 <span class="copyright">&copy; @logo Inc. All rights reserved.</span> 60 <span class="copyright">&copy; @logo Inc. All rights reserved.</span>
59 61
60 <span class="footer-links"> 62 <span class="footer-links">
61 <a href="#">Terms of use</a> 63 <a href="@routes.Application.index()">Terms of use</a>
62 - 64 -
63 <a href="#">Privacy policy</a> 65 <a href="@routes.Application.index()">Privacy policy</a>
64 </span> 66 </span>
65 </footer> 67 </footer>
66 68