blob: dd846d8f53229f61b32eca0b91c5a67dcfe44e12 (
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
|
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Shard list
</h1>
<ol class="breadcrumb">
<li>
<i class="fa fa-dashboard"></i> Dashboard
</li>
<li class="active">
<i class="fa fa-table"></i> Shard list
</li>
</ol>
</div>
</div>
<!-- /.row -->
<%= render ShardWeb.LayoutView, "flashes.html", assigns %>
<table class="table table-striped">
<tr>
<th></th>
<th>Shard</th>
<th>Id</th>
</tr>
<%= for {id, manifest, why_have_it} <- shard_list() do %>
<tr>
<td>
<%= case why_have_it do %>
<% {:cached, _} -> %><span class="label label-warning">cache</span>
<% {:pinned, _, _} -> %><span class="label label-success">pinned</span>
<% {:req, a, _} -> %><span class="label label-default">req (<%= MapSet.size(a) %>)</span>
<% end %>
</td>
<td>
<%= render "shard_entry.html", conn: @conn, manifest: manifest, pk: @pk %>
</td>
<td><small><%= id |> Base.encode16 %></small></td>
</tr>
<% end %>
</table>
|