Showing blog post draft count in the admin blog summary

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-14 22:49:50 -07:00
parent f3854ddbb6
commit 5345d9ae81

View File

@@ -12,7 +12,7 @@ if (Model.Entries.Count() > 0) { %>
int totalPostCount = entry.TotalPostCount;
var linkText = T.Plural("1 post", "{0} posts", totalPostCount).ToString();
if (draftCount==0){
if (draftCount > 0){
linkText = linkText + " (" + T.Plural("1 draft", "{0} drafts", draftCount).ToString() + ")";
}