blob: 58607c4b0f0271b48b6deba10bffe81b81b6bcc8 (
plain)
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
|
<h1>Dynamic Shovel: <b><%= fmt_string(shovel.name) %></b><%= fmt_maybe_vhost(shovel.vhost) %></h1>
<div class="section">
<h2>Overview</h2>
<div class="hider">
<table class="facts">
<tr>
<th>Source</th>
<td><%= fmt_string(fmt_uri_with_credentials(shovel.value['src-uri'])) %></td>
</tr>
<tr>
<th> </th>
<td><%= fmt_shovel_endpoint('src-', shovel.value) %></td>
</tr>
<tr>
<th>Destination</th>
<td><%= fmt_string(fmt_uri_with_credentials(shovel.value['dest-uri'])) %></td>
</tr>
<tr>
<th> </th>
<td><%= fmt_shovel_endpoint('dest-', shovel.value) %></td>
</tr>
<tr>
<th>Prefetch count</th>
<td><%= fmt_string(fallback_value(shovel, 'src-prefetch-count', 'prefetch-count')) %></td>
</tr>
<tr>
<th>Reconnect delay</th>
<td><%= fmt_time(shovel.value['reconnect-delay'], 's') %></td>
</tr>
<tr>
<th>Add headers</th>
<td><%= fmt_boolean(fallback_value(shovel, 'dest-add-forward-headers', 'add-forward-headers')) %></td>
</tr>
<tr>
<th>Ack mode</th>
<td><%= fmt_string(shovel.value['ack-mode']) %></td>
</tr>
<tr>
<th>Auto-delete</th>
<td><%= fmt_string(fallback_value(shovel, 'src-delete-after', 'delete-after')) %></td>
</tr>
</table>
</div>
</div>
<div class="section-hidden">
<h2>Delete this shovel</h2>
<div class="hider">
<form action="#/shovel-parameters" method="delete" class="confirm">
<input type="hidden" name="component" value="shovel"/>
<input type="hidden" name="vhost" value="<%= fmt_string(shovel.vhost) %>"/>
<input type="hidden" name="name" value="<%= fmt_string(shovel.name) %>"/>
<input type="submit" value="Delete this shovel"/>
</form>
</div>
</div>
|