-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (63 loc) · 2.06 KB
/
index.html
File metadata and controls
70 lines (63 loc) · 2.06 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Sort lists with Ember.ArrayController: Part 1</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Styles -->
<link href="stylesheets/bootstrap.min.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="stylesheets/bootstrap-responsive.min.css" rel="stylesheet">
<link href="stylesheets/main.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Ember.ArrayController</a>
</div>
</div>
</div>
<script type="text/x-handlebars">
<h1>Sort lists with Ember.ArrayController</h1>
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="index">
<ul>
{{#each controller}}
<li>
<h3>{{title}}</h3>
<time {{bindAttr datetime="published"}}>{{published}}</time>
{{{content}}}
</li>
{{/each}}
</ul>
</script>
<!-- Javascript (Placed at the end of the document so the pages load faster)
================================================== -->
<script src="javascripts/vendor/jquery-1.9.1.js"></script>
<script src="javascripts/vendor/handlebars-1.0.0-rc.4.js"></script>
<script src="javascripts/vendor/ember-1.0.0-rc.5.js"></script>
<script src="javascripts/application.js"></script>
<script>
/* Controllers */
App.IndexController = Ember.ArrayController.extend({
contentBinding: Ember.Binding.oneWay('App.Post.FIXTURES')
});
/* Views */
App.ApplicationView = Ember.View.extend({
tagName: 'section',
classNames: ['container']
});
App.IndexView = Ember.View.extend({
classNames: ['row-fluid']
});
</script>
</body>
</html>