diff options
author | Alex Auvolat <alex@adnab.me> | 2018-11-02 14:04:52 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-11-02 14:04:52 +0100 |
commit | 94b1f6b0ae387b7fcb0714a4c6e213212097a100 (patch) | |
tree | 33fa5f6f626b075c389b4bb977d9fbb5e7e05c37 /shardweb/lib/templates/page | |
parent | 3baa53f1da7f581619b066832b8303efbe9a46ba (diff) | |
download | shard-94b1f6b0ae387b7fcb0714a4c6e213212097a100.tar.gz shard-94b1f6b0ae387b7fcb0714a4c6e213212097a100.zip |
Directory stuff
Diffstat (limited to 'shardweb/lib/templates/page')
-rw-r--r-- | shardweb/lib/templates/page/shard_list.html.eex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shardweb/lib/templates/page/shard_list.html.eex b/shardweb/lib/templates/page/shard_list.html.eex index dd846d8..3fffef7 100644 --- a/shardweb/lib/templates/page/shard_list.html.eex +++ b/shardweb/lib/templates/page/shard_list.html.eex @@ -23,21 +23,21 @@ <tr> <th></th> <th>Shard</th> - <th>Id</th> + <th>URI</th> </tr> - <%= for {id, manifest, why_have_it} <- shard_list() do %> + <%= 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> + <% {:req, a, _} -> %><span class="label label-success">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> + <td><small class="shard_uri"><%= manifest |> ShardURI.from_manifest %></small></td> </tr> <% end %> </table> |