-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (71 loc) · 2.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Zendesk Inline Help</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"></link>
<link href="app.css" rel="stylesheet"></link>
</head>
<body>
<div class="container articles">
<h1><img src="https://cloud.frontlinesms.com/assets/logo-stroked-e0acf4bd8c083108365fc8882893d6bd.png"></img> FrontlineCloud Help Docs</h1>
<div class="row search-container">
<div class="col-md-6">
<div class="input-group">
<input type="text" class="query form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="search btn btn-default" type="button">Go!</button>
</span>
</div>
</div>
</div>
<div class="row pagination"></div>
<div class="row">
<div class="col-md-6 article-list">
<div class="content">Loading.....</div>
</div>
<div class="col-md-6 article-content"></div>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="app.js"></script>
<!--Handlebars-->
<script id="article-list-handlebar" type="text/x-handlebars-template">
<ul class="articles list-group">
{{#each this}}
<li class="article list-group-item" data-article-id="{{id}}">
<strong><a href="#">{{id}}</a></strong>
<span>{{title}}</span>
</li>
{{/each}}
</ul>
</script>
<script id="pagination-container" type="text/x-handlebars-template">
<nav>
<ul class="pagination">
{{#each this}}
<li>
<a href="#" class="page" data-page-id="{{this}}">
<span>{{this}}</span>
</a>
</li>
{{/each}}
</ul>
</nav>
</script>
<script id="article-view" type="text/x-handlebars-template">
<div>
<div class="meta-data">
{{#if draft}}<span class="label label-info">Draft</span>{{/if}}
{{#if outdated}}<span class="label label-info">Outdated</span>{{/if}}
<h4>{{id}}</h4>
<div>Created : {{created_at}}</div>
<div>Updated : {{updated_at}}</div>
</div>
<h1>{{title}}</h1>
<div>{{{body}}}</div>
</div>
</script>
</html>