files tree made better.
This commit is contained in:
parent
ffbf032480
commit
ccc91bbf19
1630 changed files with 18209 additions and 41860 deletions
11
src/Yavsc/Views/Shared/DisplayTemplates/Comment.cshtml
Normal file
11
src/Yavsc/Views/Shared/DisplayTemplates/Comment.cshtml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@model Comment
|
||||
<div data-type="blogcomment" data-id="@Model.Id" data-allow-edit="@(User.GetUserId()==Model.AuthorId?"true":"false")"
|
||||
data-allow-moderate="@ViewData["moderatoFlag"]" data-date="@Html.Raw(Model.DateCreated)" data-username="@Model.Author.UserName" >
|
||||
<markdown>@Model.Content</markdown>
|
||||
<div class="subcomments">
|
||||
@if (Model.Children!=null && Model.Children.Count>0) {
|
||||
foreach (var comment in Model.Children) {
|
||||
@Html.DisplayFor(model=>comment,"Comment","Comment")
|
||||
} }
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue