feat: Boards can now be browsed without account
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
5a201fd565
commit
9bb208d011
1 changed files with 28 additions and 37 deletions
|
@ -5,45 +5,35 @@
|
|||
<img class="banner" src="img/static/banner/@board.Tag ban.png" alt="No Banner found"/>
|
||||
<PageTitle>/@board.Tag/ - @board.Topic - BulletBoard</PageTitle>
|
||||
|
||||
<AuthorizeView>
|
||||
<Authorized>
|
||||
<div class="boardHeader">
|
||||
<h3>@board.Topic Board</h3>
|
||||
<PostForm board="@board"/>
|
||||
<PageFooter/>
|
||||
</div>
|
||||
<div class="boardHeader">
|
||||
<h3>@board.Topic Board</h3>
|
||||
<PostForm board="@board"/>
|
||||
<PageFooter/>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
|
||||
<h3>Threads</h3>
|
||||
<br/>
|
||||
@if (posts != null)
|
||||
<h3>Threads</h3>
|
||||
<br/>
|
||||
@if (posts != null)
|
||||
{
|
||||
@if (posts.Any())
|
||||
{
|
||||
@foreach (var post in posts)
|
||||
{
|
||||
@if (posts.Any())
|
||||
{
|
||||
@foreach(var post in posts)
|
||||
{
|
||||
<Post post="@post" showOpenThread="true"></Post>
|
||||
<hr/>
|
||||
}
|
||||
}
|
||||
<Post post="@post" showOpenThread="true"></Post>
|
||||
<hr/>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>
|
||||
<em>Loading Posts...</em>
|
||||
</p>
|
||||
}
|
||||
</Authorized>
|
||||
<NotAuthorized>
|
||||
<div class="notLoggedIn">
|
||||
<span>You are not logged in.</span>
|
||||
<a class="navbar-brand" href="/sys/login">Please login first.</a>
|
||||
</div>
|
||||
</NotAuthorized>
|
||||
</AuthorizeView>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>
|
||||
<em>Loading Posts...</em>
|
||||
</p>
|
||||
}
|
||||
|
||||
@code {
|
||||
|
||||
|
@ -64,4 +54,5 @@
|
|||
[Parameter]
|
||||
[Required]
|
||||
public BoardData board { get; set; }
|
||||
|
||||
}
|
Loading…
Reference in a new issue