Fixing up the existing comment UI in the HasComments editor template

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-03-09 11:43:21 -08:00
parent 804c002bd6
commit 86722cad7e
2 changed files with 4 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<%@ Import Namespace="Orchard.Comments.Models" %>
<fieldset>
<%-- todo: (heskew) pull the legend and put the link to the comments elsewhere? --%>
<legend><%=_Encoded("Comments")%> <%=Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%></legend>
<legend><%=_Encoded("Comments")%><% if (Model.Comments.Count > 0) { %> <span>&#150; <%=Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%></span><% } %></legend>
<%--
todo: (heskew) can get into a weird state if this is disabled but comments are active so, yeah, comment settings on a content item need to be hashed out
<%=Html.EditorFor(m => m.CommentsShown) %>

View File

@@ -359,6 +359,9 @@ legend {
font-size:1.6em;
font-weight:bold;
}
legend span {
font-weight:normal;
}
label {
display: block;
color:#4c4c4c;