forked from lichess-org/lila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.scala.html
45 lines (42 loc) · 1.05 KB
/
layout.scala.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@(title: String, active: String)(body: Html)(implicit ctx: Context)
@moreCss = {
@cssTag("user-form.css")
@cssTag("account.css")
}
@moreJs = {
@jsTag("user.js")
@jsTag("account.js")
}
@menu = {
@lila.pref.PrefCateg.all.map { categ =>
<a class="@active.active(categ.slug)" href="@routes.Pref.form(categ.slug)">
@categName(categ)
</a>
}
<div class="sep"></div>
<a class="@active.active("editProfile")" href="@routes.Account.profile()">
@trans.editProfile()
</a>
<a class="@active.active("password")" href="@routes.Account.passwd()">
@trans.changePassword()
</a>
<a class="@active.active("email")" href="@routes.Account.email()">
@trans.changeEmail()
</a>
<a class="@active.active("kid")" href="@routes.Account.kid()">
@trans.kidMode()
</a>
<div class="sep"></div>
<a class="@active.active("security")" href="@routes.Account.security()">
Security
</a>
<div class="sep"></div>
<a class="@active.active("close")" href="@routes.Account.close()">
@trans.closeAccount()
</a>
}
@base.layout(
title = title,
menu = menu.some,
moreCss = moreCss,
moreJs = moreJs)(body)