feat: display private/unlisted alert for article
This commit is contained in:
parent
73f5e4e4a2
commit
9885bfaed9
@ -26,6 +26,21 @@
|
|||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
@switch (post.Visibility)
|
||||||
|
{
|
||||||
|
case BlogPostVisibility.Private:
|
||||||
|
<div class="alert alert-danger" role="alert">
|
||||||
|
This post is private and can only be viewed by those with the password.
|
||||||
|
</div>
|
||||||
|
break;
|
||||||
|
|
||||||
|
case BlogPostVisibility.Unlisted:
|
||||||
|
<div class="alert alert-warning" role="alert">
|
||||||
|
This post is unlisted and can only be viewed by those with the link.
|
||||||
|
</div>
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
<h1>@post.Title</h1>
|
<h1>@post.Title</h1>
|
||||||
<p class="text-muted">
|
<p class="text-muted">
|
||||||
<img class="blog-author-icon" src="@author.AvatarUrl" alt="@author.DisplayName">
|
<img class="blog-author-icon" src="@author.AvatarUrl" alt="@author.DisplayName">
|
||||||
|
Loading…
Reference in New Issue
Block a user