Jotspot is about as cool as it gets. But when you are dealing with stuff like this can it fairly be called a wiki?
<wiki:search forAll="true" filter="it/ActualTimeForm/iteration=args/iteration" />
<wiki:var var="totalSpent" value="${0}" />
<wiki:var var="totalRemaining" value="${0}" />
<wiki:loop>
<wiki:var key="ms" value="${it/ActualTimeForm/timeSpent/milliseconds}" />
<wiki:var key="totalSpent" value="${totalSpent + ms}" />
<wiki:var key="ms" value="${it/ActualTimeForm/timeRemaining/milliseconds}" />
<wiki:var key="totalRemaining" value="${totalRemaining + ms}" />
</wiki:loop>
<wiki:var key="percent" value="${round(totalSpent div (totalSpent + totalRemaining) * 100)}%" />
@chart
<div style="width:100%; border: 1px solid black; padding:0px; background-color:red">
<div style="background: green; width: ${percent}; margin: 0px;text-align: center; color: #ddd">
${percent}
</div>
</div>
@chart
No comments:
Post a Comment