@using ImageBoardServerApp.Util
@using System.ComponentModel.DataAnnotations
@inject NavigationManager navigationManager;
/@board.Tag/ - @board.Topic - BulletBoard
Threads
@if (posts != null)
{
@if (posts.Any())
{
@foreach (var post in posts)
{
}
}
}
else
{
Loading Posts...
}
@code {
private List posts;
protected override async Task OnParametersSetAsync()
{
try
{
posts = await TheManager.getPostList(board.Tag);
}
catch
{
navigationManager.NavigateTo("/sys/dead");
}
}
[Parameter]
[Required]
public BoardData board { get; set; }
}