-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrackers.html
183 lines (180 loc) · 8.45 KB
/
trackers.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jEdit Trackers</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="trackers.css">
</head>
<body>
<div class="container">
<h1><a href="#">jEdit Trackers</a>
<div class="breadcrumbs with-ticket hidden">
<span class="glyphicon glyphicon-chevron-right text-muted"></span>
<span id="tracker-label"></span>
<span class="glyphicon glyphicon-chevron-right text-muted"></span>
<a id="ticket-num" href="#"></a>
</div>
<div id="loading" class="pull-right">
<i class="fa fa-refresh fa-spin fa-fw"></i>
<span class="sr-only">Loading...</span>
</div>
<div id="new-msg" class="pull-right hidden">
<span id="new-count"></span> updated tickets</span>
<button id="sync-new" class="btn btn-danger sync">Synchronize</button>
</div>
<div class="with-db hidden">
<ul id="open-counters" class="list-inline counters">
<li><b>Open</b></li>
<li><button class="btn btn-default" data-tracker="bugs"><span class="count">0</span> bugs</button></li>
<li><button class="btn btn-default" data-tracker="plugin-bugs"><span class="count">0</span> plugin bugs</button></li>
<li><button class="btn btn-default" data-tracker="jeditlauncher-bugs"><span class="count">0</span> launcher bugs</button></li>
<li><button class="btn btn-default" data-tracker="patches"><span class="count">0</span> patches</button></li>
<li><button class="btn btn-default" data-tracker="plugin-patches"><span class="count">0</span> plugin patches</button></li>
<li><button class="btn btn-default" data-tracker="feature-requests"><span class="count">0</span> feature requests</button></li>
<li><button class="btn btn-default" data-tracker="plugin-feature-requests"><span class="count">0</span> plugin feature requests</button></li>
</ul>
<ul class="list-inline counters">
<li><b>Missed</b></li>
<li><button id="missed" class="btn btn-default"><span id="missed-count"> </span> missed</button></li>
<li><b>All</b></li>
<li><button id="all" class="btn btn-default"><span id="all-count"> </span> tickets</button></li>
</ul>
</div>
</h1>
<form class="form-inline with-db hidden" id="form">
<div class="form-group">
<div class="input-group">
<input id="search" class="form-control" type="text" name="search" placeholder="Type search terms">
<span class="input-group-btn">
<button id="clear" class="btn btn-default" type="button">
<span class="glyphicon glyphicon-erase" aria-hidden="true"></span>
<span class="sr-only">Clear</span>
</button>
</span>
</div><!-- /input-group -->
<input id="go" class="btn btn-primary" type="submit" value="Search">
<span class="form-static text-muted"> in summary and description</span>
</div>
</form>
<hr>
<div class="with-db hidden">
<p id="match-count-p" class="hidden"><span id="match-count">0</span> matches.</p>
<table id="tickets" class="table table-striped table-bordered">
<thead>
<tr>
<th></th>
<th data-field="ticket_num" data-order="+" data-order-as="num"># <span class="glyphicon"></span></th>
<th data-field="tracker_label">Tracker <span class="glyphicon"></span></th>
<th data-field="summary">Summary <span class="glyphicon"></span></th>
<th data-field="status">Status <span class="glyphicon"></span></th>
<th data-field="created_date">Submitted <span class="glyphicon"></span></th>
<th data-field="reported_by">By <span class="glyphicon"></span></th>
<th data-field="assigned_to">Assigned <span class="glyphicon"></span></th>
</tr>
</thead>
<tbody id="tickets-body">
</tbody>
</table>
</div>
<div class="without-db hidden">
<p><b>Hi there!</b>
Seems like the local database is empty. Would you like to get <em><span id="remote-tickets-count">some</span></em>
tickets from the server? </p>
<p>You can also include old (closed before Jan. 2016) tickets, but it makes a bigger fetch and slower app all-around.</p>
<div class="form form-inline">
<div class="checkbox">
<label>
<input id="include-old" name="include-old" type="checkbox"> Include <em><span id="old-tickets-count">some</span></em> old tickets
</label>
</div>
</div>
<p class="alert alert-danger">It will also hog your machine while the full-text-search index is computed (~1 minute)
and eat up all your RAM.
You have been warned...</p>
<div class="form text-right">
<button id="initial-fetch" class="btn btn-primary" disabled>Fetch tickets</button>
</div>
</div>
<div id="ticket-not-found" class="alert alert-danger hidden"></div>
<div id="ticket" class="with-ticket hidden">
<dl class="dl-horizontal infos">
<dt>Status</dt>
<dd data-field="status"></dd>
<dt>Submitted</dt>
<dd data-field="created_date"></dd>
<dt>By</dt>
<dd data-field="reported_by"></dd>
<dt>Assigned To</dt>
<dd data-field="assigned_to"></dd>
</dl>
<div id="ticket-contents"></div>
</div>
<template id="ticket-tpl">
<div class="details">
<ul class="ticket-buttons list-unstyled">
<li><a class="goto-ticket btn btn-primary btn-small">Open</a></li>
<li><a class="ticket-url btn btn-info btn-small">Go to SF</a></li>
</ul>
<dl class="dl-horizontal infos">
<dt>Labels</dt>
<dd data-field="labels"></dd>
<dt>Group</dt>
<dd data-field="custom_fields._milestone"></dd>
<dt>Priority</dt>
<dd data-field="custom_fields._priority"></dd>
<dt>Resolution</dt>
<dd data-field="__resolution"></dd>
</dl>
<section>
<label>Description</label>
<p data-field="description" data-ml="true" aria-label="Description"></p>
</section>
<section>
<label class="toggle-discussion collapsed">Comments <span class="discussion-length"></span></label>
<div class="discussion hidden"></div>
</section>
</div>
</template>
<template id="ticket-discussion">
<table class="table table-condensed">
<tbody>
<tr>
<td>
<span data-field="timestamp"></span><br>
<span data-field="author"></span>
</td>
<td>
<p data-field="text" data-ml="true"></p>
<div class="attachments">
</div>
</td>
</tr>
</tbody>
</table>
</template>
<hr>
<div class="row">
<div class="col-md-6">
<button id="sync" class="btn btn-default with-db hidden sync">Synchronize</button>
</div>
<div class="col-md-6">
<textarea id="results" class="form-control col-md-6" rows="10" autocomplete="off"></textarea>
</div>
</div>
</div>
<script src="bower_components/moment/moment.js"></script>
<script src="bower_components/lodash/lodash.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/datatables.net/js/jquery.dataTables.js"></script>
<script src="bower_components/datatables.net-bs/js/dataTables.bootstrap.js"></script>
<script src="bower_components/lunr.js/lunr.js"></script>
<script src="//unpkg.com/[email protected]/dist/kinto.js"
integrity="sha384-SsHILufiBmKVFtsuyZpCaZt9Ip6xypM8fje3s0x3MXLMgl/yQjT8YtNInVAsmZjc"
crossorigin="anonymous">
</script>
<script src="trackers.js"></script>
</body>
</html>