-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (66 loc) · 1.85 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" href="./assets/css/default.css">
<title>GitHubMembers</title>
<script src="./app/app.js"></script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.min.js"></script>
<script type="text/javascript">
jQuery( document ).ready(function( $ ) {
App.init();
});
</script>
</head>
<body id="body" role="application">
<header id="header">
<h1>GitHub Users</h1>
</header>
<div id="app-container">
</div><!--container-->
<script id="users-template" type="text/x-handlebars-template">
{{#with links}}
<ul class="links">
{{#if first}}
<a href="#" class="action-first" rel="{{first.rel}}">First</a>
{{/if}}
{{#if prev}}
<a href="#" class="action-prev" rel="{{prev.rel}}">Previous</a>
{{/if}}
{{#if next}}
<a href="#" class="action-next" rel="{{next.rel}}">Next</a>
{{/if}}
{{#if last}}
<a href="#" class="action-last" rel="{{last.rel}}">Last</a>
{{/if}}
</ul>
{{/with}}
<ul class="users">
{{#users}}
<li class="user" id="user-{{id}}">
<div class="avatar"><img src="{{avatar_url}}" alt="{{login}}"/></div>
<div class="name">{{login}}</div>
<div class="actions">
<a href="#" class="action-followers" rel="{{id}}">Followers</a>
</div>
</li>
{{/users}}
</ul>
</script>
<script id="followers-template" type="text/x-handlebars-template">
<ul class="followers">
{{#if followers}}
{{#followers}}
<li class="follower" id="follower-{{id}}">
<div class="avatar"><img src="{{avatar_url}}" alt="{{login}}"/></div>
<div class="name">{{login}}</div>
</li>
{{/followers}}
{{else}}
<li class="no-followers"><div>No followers found.</div></li>
{{/if}}
</ul>
</script>
</body>
</html>