Skip to content

Instantly share code, notes, and snippets.

@goofmint
Last active May 27, 2016 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/d68ff8d08060cc461b3f4dd364a1aa48 to your computer and use it in GitHub Desktop.
Save goofmint/d68ff8d08060cc461b3f4dd364a1aa48 to your computer and use it in GitHub Desktop.
purchaseDetail.html
<script type="text/ejs" id="purchaseDetail">
<div class="detailScroll">
[%
var notApprovedIds = [];
for(var i = 0, l = details.length; i < l; i++){
var detail = details[i];
if(detail.status !== 'approved') { notApprovedIds.push(detail.id);}
%]
:
</div>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment