<script type="text/x-jsrender" id="Status">
${if(DateFinished != null)}
<i class="fa fa-flag fa-3x text-success" aria-hidden="true"></i>
${else if(new Date().setDate(new Date().getDate() + 7) > DateStart )}
<i class="fa fa-flag fa-3x text-warning" aria-hidden="true"></i>
${else if(Date.now() > DateStart )}
<i class="fa fa-flag fa-3x text-danger" aria-hidden="true"></i>
${else}
<span>--not started--</span>
${/if}
</script>
|
<#script type="text/x-jsrender" id="Status">
${if(DateFinished != null)}
<#i class="fa fa-flag fa-3x text-success" aria-hidden="true">
${else if(DateFinished != null && Date.now() > DateFinished)}
<#i class="fa fa-flag fa-3x text-warning" aria-hidden="true">
${else}
<#span>--not started--
${/if}
</script> |
<script>
window.processData = function(value){
if(value >= 5){
return '<span >Higher value</span>'
} else {
return ' <span >'+ Date.now()+'</span>'
}
}
</script> |
<script id="template" type="text/x-jsrender" >
<div>${processData(data.EmployeeID)}</diV>
</script>
|