1
0
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:
Uncled1023 2019-01-21 22:38:54 -08:00
parent a7abc80ac7
commit f346ac718c

View File

@ -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 />