From 7482e543cca76961a4c78a892498865218681d2c Mon Sep 17 00:00:00 2001 From: Antoine Griffard Date: Wed, 23 Dec 2020 11:33:35 +0100 Subject: [PATCH] Workflows badges --- .../Views/WorkflowType/Edit.cshtml | 2 +- .../Views/WorkflowType/Index.cshtml | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Edit.cshtml index 3ed722a8ab9..74356729b02 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Edit.cshtml @@ -23,7 +23,7 @@
@T["Properties"] - @T["Instances"] @Model.WorkflowCount + @T["Instances"] @Model.WorkflowCount
diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Index.cshtml b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Index.cshtml index 917b29e51a9..7995a1d651e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Index.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Views/WorkflowType/Index.cshtml @@ -13,7 +13,7 @@ - +
@entry.Name + @if (!entry.WorkflowType.IsEnabled) + { + @T["Disabled"] + } + @if (entry.WorkflowCount > 0) + { + @T.Plural(entry.WorkflowCount, "1 instance", "{0} instances") + }
@@ -155,7 +155,7 @@ selectAllCtrl.prop("checked", selectedItemsCount == itemsCount); selectAllCtrl.prop("indeterminate", selectedItemsCount > 0 && selectedItemsCount < itemsCount); - + selectedItems.text(selectedItemsCount + ' @T["selected"]'); displayActionsOrFilters(); });