aboutsummaryrefslogtreecommitdiff
path: root/app/views/fragments/accountInfos.scala.html
blob: 105fc5af746a2ddab8834aac02038624b5f7ce90 (plain)
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
@(accountData: Option[models.Views.Account] = None)

@accountData match {
	case Some(account) => {
		<a class="pure-button" href="@routes.Authentication.logout()">
			<i class="fa fa-sign-out fa-lg"></i>
			Logout
		</a>

		<a class="pure-button" href="@routes.Account.summary()">
			<i class="fa fa-money fa-lg"></i>
			@account.equity €
		</a>

		<a class="pure-button" href="@routes.Profile.editProfile()">
			<i class="fa fa-user fa-lg"></i>
			@account.username
		</a>
	}

	case None => {
		<a class="pure-button" href="@routes.Profile.signup()">
			<i class="fa fa-pencil-square-o fa-lg"></i>
			Sign up
		</a>

		<a class="pure-button" href="@routes.Authentication.login()">
			<i class="fa fa-sign-in fa-lg"></i>
			Log in
		</a>
	}
}