-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·84 lines (73 loc) · 2.28 KB
/
index.html
File metadata and controls
executable file
·84 lines (73 loc) · 2.28 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<script type="text/x-handlebars">
{{input type="text" value=name}}
<h1 class='title-bar'>Ember Application by {{name}}</h1>
{{outlet}}
</script>
<script type="text/x-handlebars" id="files">
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<table class="table">
<tr>
<td>Files</td>
</tr>
{{#each file in model}}
<tr><td>
{{#linkTo 'file' file}}
{{file.title}} by {{file.author}}
{{/linkTo}}
</td></tr>
{{/each}}
</table>
</div>
<div class="span9">
{{outlet}}
</div>
</div>
</div>
</script>
<script type="text/x-handlebars" id="file">
{{#if isEditing}}
{{partial "file/form"}}
<button class="btn" {{action 'done'}}>Done</button>
{{else}}
<button class="btn" {{action 'edit'}}>Edit</button>
{{/if}}
<h2>{{title}}</h2>
<h3>by {{author}}</h3>
<div>
{{markdown contents}}
</div>
</script>
<script type="text/x-handlebars" data-template-name="file/_form">
<p>
<label for="title">Title</label>
{{input type="text" id="title" value=title}}
</p>
<p>
<label for="author">Author</label>
{{input type="text" id="author" value=author}}
</p>
<p>
<label for="contents">Contents</label>
{{textarea id="contents" value=contents rows=10}}
</p>
</script>
<script src="js/libs/jquery-1.9.1.js"></script>
<script src="js/libs/showdown.js"></script>
<script src="js/libs/handlebars-1.0.0-rc.4.js"></script>
<script src="js/libs/ember-1.0.0-rc.6.js"></script>
<script src="js/fixtures.js"></script>
<script src="js/app.js"></script>
</body>
</html>