#21160 : Comment View should observe Shape ID & Classes.

Work Item: 21160
This commit is contained in:
Jay Harris
2015-02-14 16:15:59 +00:00
committed by agriffard
parent 13155e5b83
commit 4ac29a3937

View File

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