-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
executable file
·57 lines (44 loc) · 1.2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tech.pro Getting Started with Ember.js: Team Roster</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<script type="text/x-handlebars">
<h1>Park Center Basketball League: Team Rosters</h1>
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="home">
<h3>League Info</h3>
<ul>
{{#each item in info}}
<li>{{item}}</li>
{{/each}}
</ul>
<h3>Teams</h3>
{{#if teams.isLoaded}}
<ul>
{{#each team in teams}}
{{#linkTo "team" team}}
<p> {{team.name}} </p>
{{/linkTo}}
{{/each}}
</ul>
{{else}}
<p class="loading">...Loading teams</p>
{{/if}}
</script>
<script type="text/x-handlebars" data-template-name="team">
<h3>Team Page: {{name}}</h3>
<p> team colors: {{colors}} </p>
</script>
<script src="js/libs/jquery-1.9.1.js"></script>
<script src="js/libs/handlebars-1.0.0-rc.3.js"></script>
<script src="js/libs/ember-1.0.0-rc.2.js"></script>
<script src="js/libs/ember-data.js"></script>
<script src="js/app.js"></script>
</body>
</html>