2023-01-18 12:56:24 +00:00
|
|
|
@using System.ComponentModel.DataAnnotations
|
|
|
|
@using ImageBoardServerApp.Data
|
|
|
|
@using ImageBoardServerApp.Data.Repository
|
|
|
|
|
|
|
|
<PageTitle>/@board.Tag/ - @board.Topic - BulletBoard</PageTitle>
|
|
|
|
|
2023-01-18 13:49:53 +00:00
|
|
|
<div class="boardHeader">
|
|
|
|
<h3>@board.Topic Board</h3>
|
|
|
|
<PostForm board="@board"/>
|
|
|
|
<PageFooter/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2023-01-18 12:56:24 +00:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Threads</h3>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
@if (posts.Any())
|
|
|
|
{
|
|
|
|
@foreach(var post in posts)
|
|
|
|
{
|
|
|
|
<Post post="@post"></Post>
|
|
|
|
<hr/>
|
|
|
|
}
|
|
|
|
}
|
2023-01-18 13:49:53 +00:00
|
|
|
|
2023-01-18 12:56:24 +00:00
|
|
|
|
|
|
|
<!--Admin -->
|
|
|
|
<!--Moderator -->
|
|
|
|
<!--Janitor -->
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
|
|
|
private List<PostData> posts;
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
{
|
|
|
|
posts = await PostsRepository.getPostsByBoardAsync(board.Tag);
|
|
|
|
}
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
[Required]
|
|
|
|
public BoardData board { get; set; }
|
|
|
|
}
|