-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (117 loc) · 3.39 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Social connections</title>
<link rel="stylesheet" href="css/screen.css">
</head>
<body>
<div class="container">
<header class="theHeader">
<h1 class="heading1">
Social connections
</h1>
</header>
<div class="left col bgDarkGray1">
<nav class="body row theMenu" id="theMenu">
<!-- empty -->
</nav>
</div>
<div class="right col bgDarkGray1">
<section class="body row theContent" id="theContent">
<!-- empty -->
</section>
</div>
</div>
<script id="personMenuTemplate" type="text/template">
<a class="title" href="#person/<%= id %>" >
<%= firstName %> <%= surname %>
</a>
</script>
<script id="personDetailTemplate" type="text/template">
<h1 class="heading1">
<%= firstName %> <%= surname %>
</h1>
<h2 class="heading2">
<%= gender %><% if (age) { %>, <% } %>
<%= age %>
</h2>
<div class="friendsContainer directFriends">
<h3 class="heading3">
Direct friends
</h3>
<% if (directFriends) { %>
<ul class="friendsList">
<% _.each(directFriends, function(friend){ %>
<li class="friendsListItem">
<a href="#person/<%= friend.id %>">
<%= friend.firstName %> <%= friend.surname %>
</a>
</li>
<% }); %>
</ul>
<%
}
else { %>
<span class="noFriends darkGray7">
No friends.
</span>
<%
}
%>
</div>
<div class="friendsContainer friendsOfFriends">
<h3 class="heading3">
Friends of Friends
</h3>
<% if (friendsOfFriends) { %>
<ul class="friendsList">
<% _.each(friendsOfFriends, function(friend){ %>
<li class="friendsListItem">
<a href="#person/<%= friend.id %>">
<%= friend.firstName %> <%= friend.surname %>
</a>
</li>
<% }); %>
</ul>
<%
}
else { %>
<span class="noFriends">
No friends.
</span>
<%
}
%>
</div>
<div class="friendsContainer suggestedFriends">
<h3 class="heading3">
Suggested Friends
</h3>
<% if (!_.isEmpty(suggestedFriends)) { %>
<ul class="friendsList">
<% _.each(suggestedFriends, function(friend){ %>
<li class="friendsListItem">
<a href="#person/<%= friend.id %>">
<%= friend.firstName %> <%= friend.surname %>
</a>
</li>
<% }); %>
</ul>
<%
}
else { %>
<span class="noFriends">
No friends.
</span>
<%
}
%>
</div>
</script>
<script src="js/lib/vendor/jquery.js"></script>
<script src="js/lib/vendor/underscore.js"></script>
<script src="js/lib/vendor/backbone.js"></script>
<script src="js/app.js"></script>
</body>
</html>