2023-05-17 11:17:53 +00:00
|
|
|
@using ImageBoardServerApp.Util
|
|
|
|
@using System.ComponentModel.DataAnnotations
|
2023-05-31 12:50:05 +00:00
|
|
|
@inject NavigationManager navigationManager;
|
|
|
|
|
2023-02-13 21:04:09 +00:00
|
|
|
<img class="banner" src="img/static/banner/@board.Tag ban.png" alt="No Banner found"/>
|
2023-01-18 12:56:24 +00:00
|
|
|
<PageTitle>/@board.Tag/ - @board.Topic - BulletBoard</PageTitle>
|
|
|
|
|
2023-06-13 05:57:20 +00:00
|
|
|
<div class="boardHeader">
|
|
|
|
<h3>@board.Topic Board</h3>
|
|
|
|
<PostForm board="@board"/>
|
|
|
|
<PageFooter/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Threads</h3>
|
|
|
|
<br/>
|
|
|
|
@if (posts != null)
|
|
|
|
{
|
|
|
|
@if (posts.Any())
|
|
|
|
{
|
|
|
|
@foreach (var post in posts)
|
2023-02-13 17:45:14 +00:00
|
|
|
{
|
2023-06-13 05:57:20 +00:00
|
|
|
<Post post="@post" showOpenThread="true"></Post>
|
|
|
|
<hr/>
|
2023-02-13 17:45:14 +00:00
|
|
|
}
|
2023-06-13 05:57:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<p>
|
|
|
|
<em>Loading Posts...</em>
|
|
|
|
</p>
|
|
|
|
}
|
2023-01-18 13:49:53 +00:00
|
|
|
|
2023-01-18 12:56:24 +00:00
|
|
|
@code {
|
|
|
|
|
|
|
|
private List<PostData> posts;
|
|
|
|
|
2023-06-13 14:24:38 +00:00
|
|
|
|
2023-03-01 13:44:06 +00:00
|
|
|
protected override async Task OnParametersSetAsync()
|
2023-01-18 12:56:24 +00:00
|
|
|
{
|
2023-05-31 12:50:05 +00:00
|
|
|
try
|
|
|
|
{
|
|
|
|
posts = await TheManager.getPostList(board.Tag);
|
|
|
|
}
|
|
|
|
catch
|
|
|
|
{
|
|
|
|
navigationManager.NavigateTo("/sys/dead");
|
|
|
|
}
|
2023-01-18 12:56:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
[Required]
|
|
|
|
public BoardData board { get; set; }
|
2023-06-13 05:57:20 +00:00
|
|
|
|
2023-01-18 12:56:24 +00:00
|
|
|
}
|