From 86722cad7e89d54cf0b25ea3df7c14ee3a547c0f Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Tue, 9 Mar 2010 11:43:21 -0800 Subject: [PATCH] Fixing up the existing comment UI in the HasComments editor template --HG-- branch : dev --- .../Views/EditorTemplates/Parts/Comments.HasComments.ascx | 2 +- src/Orchard.Web/Themes/TheAdmin/Styles/site.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx b/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx index c0de6e68b..59b62a457 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.HasComments.ascx @@ -4,7 +4,7 @@ <%@ Import Namespace="Orchard.Comments.Models" %>
<%-- todo: (heskew) pull the legend and put the link to the comments elsewhere? --%> - <%=_Encoded("Comments")%> <%=Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%> + <%=_Encoded("Comments")%><% if (Model.Comments.Count > 0) { %> – <%=Html.CommentSummaryLinks(T, Model.ContentItem, Model.Comments.Count, Model.PendingComments.Count)%><% } %> <%-- 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) %> diff --git a/src/Orchard.Web/Themes/TheAdmin/Styles/site.css b/src/Orchard.Web/Themes/TheAdmin/Styles/site.css index 6bbc98489..f9fa923d7 100644 --- a/src/Orchard.Web/Themes/TheAdmin/Styles/site.css +++ b/src/Orchard.Web/Themes/TheAdmin/Styles/site.css @@ -359,6 +359,9 @@ legend { font-size:1.6em; font-weight:bold; } +legend span { + font-weight:normal; +} label { display: block; color:#4c4c4c;