forked from jgchristopher/nebraskajs-intro-to-ember
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (104 loc) · 3.69 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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8/>
<title>Book Collection</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="./css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<h2>Books</h2>
</div>
</div>
</div>
<div class="main-content container-fluid">
<div class="row-fluid">
<script type="text/x-handlebars">
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="shelves">
<div class="span3">
<div class="well">
<h3>Shelves</h3>
<ul class="nav nav-list">
{{#each shelf in controller}}
<li>{{#linkTo "shelf" shelf}}{{shelf.category}}{{/linkTo}}</li>
{{/each}}
</ul>
</div>
</div>
<div class="span9">
{{outlet}}
</div>
</script>
<script type="text/x-handlebars" data-template-name="shelves/index">
↵ Select a Category
</script>
<script type="text/x-handlebars" data-template-name="shelf">
{{ partial shelfListOfBooks }}
</script>
<script type="text/x-handlebars" data-template-name="shelf/index">
<span>
Select A Book ↑
</span>
</script>
<script type="text/x-handlebars" data-template-name="book">
<h3>{{title}}</h3>
<div class="row-fluid">
<div class="span6">
<img {{ bindAttr src="imageUrl" }}>
</div>
<div class="span6">
<ul>
<li>{{ author }}</li>
<li>Read: {{view Ember.Checkbox checkedBinding="read"}}</li>
<li>Like: {{view Ember.Checkbox checkedBinding="like"}}</li>
</ul>
</div>
</div>
</script>
<script type="text/x-handlebars" data-template-name="_shelfListOfBooks">
<h3>Shelf: {{category}}</h3>
{{#each book in controller.books}}
<div class="book-thumb">{{#linkTo "book" book}}
<img {{ bindAttr src="book.thumbUrl" }}>
<div>{{shorten book.title}}</div>
{{/linkTo}}
</div>
{{else}}
None
{{/each}}
</script>
<script type="text/x-handlebars" data-template-name="shelfListLayout">
<div class="row-fluid">
<div class="span12">
<div class="well">
{{ yield }}
</div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="well" style="background-color: transparent !important;">
<div id="book-contents">
{{outlet}}
</div>
</div>
</div>
</div>
</script>
</div>
</div>
<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.1.js"></script>
<script src="./js/libs/ember-data.js"></script>
<script src="./js/libs/bootstrap.min.js"></script>
<script src="./js/app.js"></script>
</body>
</html>