-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
195 lines (179 loc) · 7.3 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<!-- habitat: export payload telemetry -->
<!-- http://habitat.habhub.org/ept -->
<!-- (C) Copyright 2012; GNU GPL 3-->
<!-- Adam Greig -->
<!-- habitat: web template -->
<!-- http://habitat.habhub.org -->
<!-- (C) Copyright 2012; GNU GPL 3-->
<!-- Daniel Saul, based on Skeleton -->
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8"/>
<title>habitat export payload telemetry</title>
<meta name="description" content="export payload telemetry from habitat"/>
<meta name="author" content="Adam Greig"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<link rel="stylesheet" type="text/css" href="t/css/base.css" />
<link rel="stylesheet" type="text/css" href="t/css/skeleton.css" />
<link rel="stylesheet" type="text/css" href="t/css/layout.css" />
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<link rel="shortcut icon" href="t/images/favicon.ico" />
<link rel="stylesheet" href="css/redmond/jquery-ui-1.8.21.custom.css" />
<link rel="stylesheet/less" href="less/ept.less" />
<script type="text/coffeescript" src="coffee/ept.coffee"></script>
<script type="text/javascript" src="js/json2.js"></script>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.couch.js"></script>
<script type="text/javascript" src="js/jsrender.js"></script>
<script type="text/javascript" src="js/coffee-script.js"></script>
<script type="text/javascript" src="js/less-1.3.0.min.js"></script>
</head>
<body>
<header>
<div class="container">
<div class="sixteen columns">
<h1 class="no-margin">
<a href="http://habitat.habhub.org/" alt="habitat">
<img src="t/images/header_logo.png" alt="habitat" title="habitat"/>
</a>
</h1>
<span id="app_name"><b>export payload telemetry</b></span>
</div>
</div>
</header>
<div id="grey-section">
<div class="container">
<div class="two-thirds column">
<h3 class="remove-bottom" id="page_title">export payload telemetry</h3>
<p class="remove-bottom" id="page_subtitle"></p>
</div>
</div>
</div>
<div class="container">
<!-- Can just put all content in a container class normally. -->
<div class="one column">
<span class="step-num">
1
</span>
</div>
<div class="fifteen columns">
<span class="step-title">Select Payload</span>
</div>
<hr />
<div class="fourteen columns offset-by-one">
<ul>
<li>
Pick a flight from the list on the left to view only the
payloads within that flight.
</li>
<li>
Click on a payload from the list on the right to select it
for telemetry export.
</li>
<li>
Start typing into either filter box to narrow the search
results.
</li>
<li>
If you select a payload from within a flight, only
telemetry from that flight will be shown, whereas if you
select a payload from the full list all telemetry from that
payload will be exported.
</li>
</ul>
</div>
<div class="seven columns offset-by-one">
<h4>Flights</h4>
<input type="text" placeholder="Filter..." id="filter-flights" />
<div id="flight-list" class="list">
<span class="loading">Loading...</span>
</div>
</div>
<div class="eight columns">
<h4>Payloads (<span id="payloads-in">All</span>)</h4>
<input type="text" placeholder="Filter..." id="filter-payloads" />
<div id="payload-list" class="list">
<span class="loading">Loading...</span>
</div>
</div>
<div class="sixteen columns" style="height: 15px;"></div>
<div class="one column hide-without-payload">
<span class="step-num">
2
</span>
</div>
<div class="fifteen columns hide-without-payload">
<span class="step-title">Select Data</span>
</div>
<hr class="hide-without-payload"/>
<div
class="fourteen columns offset-by-one hide-without-payload"
id="select-data-intro">
</div>
<div class="fourteen columns offset-by-one hide-without-payload">
<label>
<input type="checkbox" id="toggle-select-all" />
<strong>Toggle All</strong>
</label>
</div>
<div
class="fourteen columns offset-by-one hide-without-payload"
id="select-data">
</div>
<div class="sixteen columns" style="height: 15px;"></div>
<div class="one column hide-without-payload hide-without-data">
<span style="font-weight: bold; font-size: 2em;">
3
</span>
</div>
<div class="fifteen columns hide-without-payload hide-without-data">
<span style="font-size: 2em;">Export Data</span>
</div>
<hr class="hide-without-payload hide-without-data"/>
<div class="fourteen columns offset-by-one hide-without-payload hide-without-data">
Select format:
<a class="export-button" id="export-csv">CSV</a> or
<a class="export-button" id="export-json">JSON</a> or
<a class="export-button" id="export-kml">KML</a>
</div>
<div class="sixteen columns" style="height: 30px;"></div>
</div>
</body>
</html>
<script type="text/x-jsrender" id="flight-row-template">
<div class="alpha six columns flight-row" id="{{>_id}}">
<span class="flight-name">{{>name}}</span><br />
<span class="date">Launch: {{>launch.time}}</span><br />
<span class="docid">Doc ID: {{>_id}}</span>
</div>
</script>
<script type="text/x-jsrender" id="payload-row-template">
<div class="alpha seven columns payload-row" id="{{>_id}}">
<span class="payload-name">{{>name}}</span>
<span class="callsign">
({{for sentences ~count=sentences.length}}{{>callsign}}{{if #index < ~count-1}}, {{/if}}{{/for}})
</span>
<br />
{{if metadata}}
{{>metadata.description}}
<br />
{{/if}}
<span class="date">Created: {{>time_created}}</span><br />
<span class="docid">Doc ID: {{>_id}}</span>
</div>
</script>
<script type="text/x-jsrender" id="data-checkbox-template">
<label>
<input
type="checkbox" class="select-data-checkbox"
name="fields" value="{{>name}}" />
{{>label}}
</label>
</script>