mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 17:47:54 +08:00
Showing blog post draft count in the admin blog summary
--HG-- branch : dev
This commit is contained in:
@@ -12,7 +12,7 @@ if (Model.Entries.Count() > 0) { %>
|
|||||||
int totalPostCount = entry.TotalPostCount;
|
int totalPostCount = entry.TotalPostCount;
|
||||||
|
|
||||||
var linkText = T.Plural("1 post", "{0} posts", totalPostCount).ToString();
|
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() + ")";
|
linkText = linkText + " (" + T.Plural("1 draft", "{0} drafts", draftCount).ToString() + ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user