mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 11:14:27 +00:00
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
@page "/admin/block-descriptors"
|
|
@attribute [Authorize]
|
|
@layout AdminLayout
|
|
|
|
@inject Microsoft.EntityFrameworkCore.IDbContextFactory<DbContext> DbContextFactory
|
|
|
|
<PageTitle>Block descriptors</PageTitle>
|
|
|
|
@if(!_initialized)
|
|
{
|
|
<div class="stats-section">
|
|
<h1 style="color: red; align-content: center; padding: 2rem">Loading...</h1>
|
|
</div>
|
|
|
|
return;
|
|
}
|
|
|
|
<section class="stats-section">
|
|
<h4>Block descriptors</h4>
|
|
<table class="table table-dark table-striped table-bordered mt-4 mb-4">
|
|
<thead class="thead-dark">
|
|
<tr>
|
|
<th class="fw-bold bg-secondary text-light">
|
|
@DisplayNameHelper.GetDisplayName(typeof(BlockDescriptor), nameof(BlockDescriptor.Density))
|
|
</th>
|
|
<th class="fw-bold bg-secondary text-light">
|
|
@DisplayNameHelper.GetDisplayName(typeof(BlockDescriptor), nameof(BlockDescriptor.Blocks))
|
|
</th>
|
|
<th class="fw-bold bg-secondary text-light">
|
|
@DisplayNameHelper.GetDisplayName(typeof(BlockDescriptor), nameof(BlockDescriptor.BlockLength))
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(BlockDescriptor item in _items)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@item.Density
|
|
</td>
|
|
<td>
|
|
@item.Blocks
|
|
</td>
|
|
<td>
|
|
@item.BlockLength
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</section> |