summaryrefslogtreecommitdiffstats
path: root/modules-available/debugconfig/templates/relaystatus.html
blob: d38b37358a5359c4192e656a4f826b95adbe5192 (plain) (blame)
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

<div class="panel panel-default">
	<div class="panel-heading">
	Active relays
	</div>
	<div class="panel-body">
		<table class="table table-striped table-condensed">
			<thead>
				<tr>
					<th>Relay ID</th>
					<th>BWLP client</th>
					<th>Debug Server</th>
					<th>
						<form method="post">
							<input type="hidden" name="token" value={{token}}>
							<input type="hidden" name="action" value="refreshList">
							<button type="submit" class="btn btn-default pull-right btn-xs" title="Refresh relay list"><span class="glyphicon glyphicon-refresh"></span></button>
						</form>
					</th>
				</tr>
			</thead>
			<tbody>
				{{#activeRelays}}
				<tr>
				<td>{{id}}</td>
				<td>{{bwlpclient}}</td>
				<td>{{debugserver}}</td>
				<td>
					<div class="btn-group pull-right">
						<button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#log" title="Show log"><span class="glyphicon glyphicon-paperclip"></span></button>
						<div id="log" class="modal fade" tabindex="-1" role="dialog">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">Relay ID: {{id}}</div>
									<div class="modal-body" data-tm-id="{{id}}" data-tm-log="messages"></div>
									<div class="modal-footer">
										<a class="btn btn-primary" data-dismiss="modal">Close</a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</td>
				</tr>
				{{/activeRelays}}
			</tbody>
		</table>
	<!-- </div>
	<div data-tm-id="{{id}}" data-tm-log="messages">
	</div> -->
	</div>
</div>