aboutsummaryrefslogblamecommitdiff
path: root/shardweb/lib/templates/directory/view.html.eex
blob: b9813910a11f71ae2311ee0b40b2f970b29d21dc (plain) (tree)





































                                                                                            
<!-- Page Heading -->
<div class="row">
  <div class="col-lg-12">
    <h1 class="page-header">
      <%= @name %>
      <small>directory contents</small>

    </h1>
    <ol class="breadcrumb">
      <li class="active">
        <i class="fa fa-folder"></i> <%= @name %>
      </li>
    </ol>
  </div>
</div>
<!-- /.row -->

<%= render ShardWeb.LayoutView, "flashes.html", assigns %>

<table class="table table-striped">
  <tr>
    <th>Name</th>
    <th>Shard</th>
    <th>Id</th>
  </tr>
  <%= for {name, manifest} <- dir_contents(@conn, @shard) do %>
    <tr>
      <td>
        <strong><%= name %></strong>
      </td>
      <td>
        <%= render ShardWeb.PageView, "shard_entry.html", conn: @conn, manifest: manifest %>
      </td>
      <td><small><%= (SData.term_hash manifest) |> Base.encode16 %></small></td>
    </tr>
  <% end %>
</table>