<% if(listItem.data?.length){ %>
# |
<% Object.keys(JSON.parse(JSON.stringify(listItem.data[0]))).forEach(function(title){ %>
<% if(title != "id"){ %>
<%= title %> |
<% } %>
<% }) %>
Action |
<% listItem.data.forEach(function(myObject, index){ %>
<%= index + 1 %> |
<% Object.entries(JSON.parse(JSON.stringify(myObject))).forEach(function(arr){ %>
<% if(arr[0] != "id"){ %>
<%= arr[0] == "flag" ? flags[arr[1]] + " - " + arr[1] : arr[1] %>
|
<% } %>
<% }) %>
✎ Edit
|
<% }) %>
<% } else { %>
You Don't have any <%= listItem.from %>...
<% } %>