mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#21160 : Comment View should observe Shape ID & Classes.
Work Item: 21160
This commit is contained in:
@@ -7,8 +7,12 @@
|
|||||||
|
|
||||||
var children = New.List(Items: Model.Items);
|
var children = New.List(Items: Model.Items);
|
||||||
children.Classes.Add("comments");
|
children.Classes.Add("comments");
|
||||||
|
|
||||||
|
Model.Classes.Add("comment");
|
||||||
|
Model.Classes.Add("comment-"+comment.Id);
|
||||||
|
var tag = Tag(Model, "article");
|
||||||
}
|
}
|
||||||
<article class="comment comment-@comment.Id">
|
@tag.StartElement
|
||||||
<header>
|
<header>
|
||||||
<h4>
|
<h4>
|
||||||
<span class="who">@Display.CommentAuthor(ContentPart: comment)</span>
|
<span class="who">@Display.CommentAuthor(ContentPart: comment)</span>
|
||||||
@@ -22,6 +26,4 @@
|
|||||||
@Display.CommentText(ContentPart: Model.ContentPart, ContentItem: Model.ContentItem)
|
@Display.CommentText(ContentPart: Model.ContentPart, ContentItem: Model.ContentItem)
|
||||||
|
|
||||||
@Display(children)
|
@Display(children)
|
||||||
</article>
|
@tag.EndElement
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user