mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Added comment count to blog posts.
This commit is contained in:
parent
a7abc80ac7
commit
f346ac718c
@ -12,6 +12,10 @@
|
||||
by <a href="@Url.SubRouteUrl("user", "User.ViewProfile", new { username = Model.Blog.User.Username })">@Model.Blog.User.Username</a>
|
||||
</text>
|
||||
}
|
||||
@if (Model.Comments.Any())
|
||||
{
|
||||
@: - @Model.Comments.Count comment@(Model.Comments.Count > 1 ? "s" : "")
|
||||
}
|
||||
@if (Model.Blog.User.Username == User.Identity.Name || User.IsInRole("Admin"))
|
||||
{
|
||||
<br />
|
||||
|
Loading…
Reference in New Issue
Block a user