This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
104 lines (83 loc) · 2.61 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ember demo @ barcamp bangalore</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/bootflat.css">
</head>
<body>
<script type="text/x-handlebars">
<div class="page-header">
{{#link-to 'movies.index'}}
<h3>Ember movie app </h3>
{{/link-to}}
</div>
{{outlet}}
</script>
<script type="text/x-handlebars" id="index">
<p>This is the index route</p>
</script>
<script type="text/x-handlebars" id="movies/index">
<div class="container">
<div class="row">
{{#each model}}
<div class="col-sm-6 col-md-4 col-lg-3 col-xs-4">
<div class="thumbnail">
{{#link-to 'movie' this.name}}
<img {{bind-attr src=this.thumbnail}} class="img-rounded">
{{/link-to}}
<div class="caption">
<h3>{{this.title}}</h3>
<p>{{this.synopsis}}</p>
</div>
</div>
</div>
{{/each}}
</div>
</div>
</script>
<script type="text/x-handlebars" id="movie">
<div class="container jumbotron">
<h1>{{title}}</h1>
<p>{{synopsis}}</p>
</div>
<div class="container">
{{#if isCommentsNotEmpty}}
<h3>Comments</h3>
{{/if}}
{{#each comment in comments}}
<div class="alert alert-success">
<p>{{comment}}</p>
</div>
{{/each}}
</div>
<div class="container">
<h4>Got some comments, write here!</h4>
<div class="form-group">
{{textarea value=someComment class="form-control"}}
</div>
<button class="btn btn-info btn-md" {{action 'addComment'}}>Submit</button>
<div class="container">
<h4>Preview</h4>
<div class="alert alert-info">
{{someComment}}
</div>
</div>
</div>
</script>
<script type="text/x-handlebars" id="loading">
<p>This is the loading route</p>
</script>
<script type="text/x-handlebars" id="about">
<p>Made by <a href="http://github.com/sivakumar-kailasam" target="_blank">Sivakumar Kailasam</a></p>
</script>
<script src="js/libs/jquery-1.10.2.js"></script>
<script src="js/libs/handlebars-1.1.2.js"></script>
<script src="js/libs/ember-1.4.0.js"></script>
<script src="js/app.js"></script>
<!-- to activate the test runner, add the "?test" query string parameter -->
<script src="tests/runner.js"></script>
</body>
</html>