-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (40 loc) · 1.21 KB
/
index.html
File metadata and controls
42 lines (40 loc) · 1.21 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
<html>
<head>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/handlebars.js"></script>
<script src="js/ember-1.0.0-pre.4.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<script type="text/x-handlebars">
<div id="frm">
<b>Load Tweets for: </b>
{{view App.SearchTextField placeholder="Twitter username" valueBinding="App.tweetsController.username"}}
<button {{action "loadTweets" target="App.tweetsController"}}>Go!</button>
</div>
<div id="content">
<div id="recent">
<h3>Recent Users</h3>
<ol>
{{#each user in App.recentUsersController.content}}
<li>
<a href="#" title="view again" {{action "searchAgain" "user" target="App.recentUsersController"}}>{{user}}</a> -
<a href="#" title="remove" {{action "removeUser" "user" target="App.recentUsersController"}}>X</a>
</li>
{{/each}}
</ol>
</div>
<div id="tweets">
<h3>Tweets</h3>
<ul> {{#each App.tweetsController}}
<li> <img {{bindAttr src="avatar"}} />
<span>{{date}}</span>
<h3>{{screen_name}}</h3>
<p>{{text}}</p>
</li> {{/each}}
</ul>
</div>
</div>
</script>
</body>
</html>