#21075: Fixing outcome labels.

Work Item: 21075
This commit is contained in:
Sipke Schoorstra
2014-11-16 02:24:38 -08:00
parent 61b73d84ea
commit 3fb84f80ef
7 changed files with 44 additions and 30 deletions

View File

@@ -1,13 +1,8 @@
@using Orchard.Utility.Extensions
@using Orchard.Workflows.Helpers
@{
string name = Model.Name;
string actions = Model.State.Outcomes;
var outcomes = String.Join(",", actions == null ? new string[0] : actions.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => "'" + x.Trim() + "'").ToArray());
var outcomes = ((string)Model.State.Outcomes).FormatOutcomesJson();
}
<div data-outcomes="@outcomes">
<div class="diamond"></div>
@*@name.CamelFriendly()*@
</div>
</div>