summaryrefslogtreecommitdiff
path: root/views/profile.ejs
blob: b64e1d538c57ec8122bf072c7a74922e8a175451 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html>
<head>
	<title>vvalls</title>
	[[ include partials/meta ]]
</head>
<body class="loading">
<div class="rapper page">
	[[- include partials/header ]]
	
	<div class="profilepage">
			[[ if (profile.photo && profile.photo.length) { ]]
			<div class="profilePic" style="background-image:url([[- profile.photo ]])">
			</div>
			[[ } else { ]]
			<div class="profilePic">
				<span class="ion-ios7-person-outline"></span>
			</div>
			[[ } ]]
			<div class="bio">
				<div class="holder">
				<h2>[[- profile.displayName ]]</h2>
				[[ if (profile.location) { ]]
				<span>
					[[- profile.location ]]
				</span>
				[[ } ]]
				[[ if (profile.website && profile.website.length) { ]]
				<span>
					<a href="[[- profile.website ]]">[[- profile.website ]]</a>
				</span>
				[[ } ]]
				[[ if (profile.twitterName && profile.twitterName.length) { ]]
				<span>
					<a href="https://twitter.com/[[- profile.twitterName ]]">@[[- profile.twitterName ]]</a>
				</span>
				[[ } ]]
			</div>
			</div>
	</div>

	[[ if (projects.length) { ]]
		<h1>[[- profile.username ]] has [[- projects.length ]] project[[- projects.length != 1 ? "s" : "" ]]</h1>
	
    [[ include projects/list-projects ]]

    <a href="#" class="viewMore btn">view more</a>
  [[ } else { ]]
    <h1>Welcome to VVALLS</h1>
    <br><br>
    You don't have any projects yet.  To get started click "New Project" up at the top of the screen.
	[[ } ]]
	
	[[ include partials/edit-profile ]]
	[[ include projects/layouts-modal ]]	
	[[ include projects/edit-project ]]
	[[ include partials/sign-in ]]
	[[ include partials/confirm-modal ]]
	[[ include partials/footer ]]

</div>


</body>
[[ include partials/scripts ]]
</html>