-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (51 loc) · 1.76 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Semantic</title>
<!-- <link rel="stylesheet" href="css/normalize.css"> -->
<!-- <link rel="stylesheet" href="css/style.css"> -->
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
</head>
<body>
<script type="text/x-handlebars" id="documents">
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<table class='table'>
<thead>
<tr>
<th>All Articles ({{totalCount}})</th>
<th><button {{action 'add_doc' target='view'}}>Add Document</button></th>
</tr>
</thead>
{{#each model}}
<tr><td>
{{#link-to 'document' this}}{{title}}{{/link-to}}
</td></tr>
{{/each}}
</table>
</div>
<div class="span9">
{{outlet}}
</div>
</div>
</div>
</script>
<script type='text/x-handlebars' id='add_doc'>
<p>Title:</p><input type='text'></input>
<p>Contents:</p><input type='text'></input>
</script>
<script type="text/x-handlebars" id="document">
<h1>{{title}}</h1>
<p>{{view App.EditDocumentContent valueBinding='contents'}}</p>
<p><button {{action 'save_doc' this}}>Save</button></p>
</script>
<script src="js/libs/jquery-2.0.3.min.js"></script>
<script src="js/libs/handlebars-1.0.0.js"></script>
<script src="js/libs/ember-1.0.0-rc.8.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.1.0/moment.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>