aboutsummaryrefslogtreecommitdiff
path: root/app/views/fragments/accountInfos.scala.html
blob: 8fb0aab36ac17d4481e8bfb9d969f002103cdf7e (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.Auth.logout()">
			<i class="fa fa-sign-out fa-lg"></i>
			Logout
		</a>

		<a class="pure-button" href="#">
			<i class="fa fa-money fa-lg"></i>
			@account.equity €
		</a>

		<a class="pure-button" href="#">
			<i class="fa fa-user fa-lg"></i>
			@account.username
		</a>
	}

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

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