35 lines
702 B
Plaintext
35 lines
702 B
Plaintext
@model FileHandleListModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Files";
|
|
Layout = "_Layout";
|
|
}
|
|
|
|
<h2>All Files</h2>
|
|
|
|
@if (!Model.FileHandles.Any())
|
|
{
|
|
<p>No files available</p>
|
|
}
|
|
else
|
|
{
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Block Count</th>
|
|
<th scope="col">Links</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(var file in Model.FileHandles)
|
|
{
|
|
<tr>
|
|
<th scope="row" class="align-middle">@file.FileName</th>
|
|
<th scope="row" class="align-middle">@file.BlockCount</th>
|
|
<th scope="row" class="align-middle"><a asp-controller="Files" asp-action="Index" asp-route-id="@file.Id" class="btn btn-primary">View...</a></th>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
} |