48 lines
No EOL
789 B
Text
48 lines
No EOL
789 B
Text
@using System.ComponentModel.DataAnnotations
|
|
@using ImageBoardServerApp.Data
|
|
@using ImageBoardServerApp.Data.Repository
|
|
|
|
<PageTitle>/@board.Tag/ - @board.Topic - BulletBoard</PageTitle>
|
|
|
|
<div class="boardHeader">
|
|
<h3>@board.Topic Board</h3>
|
|
<PostForm board="@board"/>
|
|
<PageFooter/>
|
|
</div>
|
|
|
|
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<h3>Threads</h3>
|
|
<br/>
|
|
|
|
@if (posts.Any())
|
|
{
|
|
@foreach(var post in posts)
|
|
{
|
|
<Post post="@post" showOpenThread="true"></Post>
|
|
<hr/>
|
|
}
|
|
}
|
|
|
|
|
|
<!--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; }
|
|
} |