<% var keyPrefix = angularAppName + '.'+ entityInstance + '.'; %>

<%= entityClass %>s

<% if (searchEngine == 'elasticsearch') { %>
<% } %>
<% for (fieldId in fields) { %> <% } %><% for (relationshipId in relationships) { if (relationships[relationshipId].relationshipType == 'many-to-one' || (relationships[relationshipId].relationshipType == 'one-to-one' && relationships[relationshipId].ownerSide == true) || (relationships[relationshipId].relationshipType == 'many-to-many' && relationships[relationshipId].ownerSide == true && pagination == 'no')) { %> <% } } %> infinite-scroll="loadPage(page + 1)" infinite-scroll-disabled="links['last'] == page"<% } %>> <% for (fieldId in fields) { %><% if (fields[fieldId].fieldType == 'byte[]') { %> <% } else if (fields[fieldId].fieldTypeBlobContent == 'image') { %> <% } %><% if (fields[fieldId].fieldTypeBlobContent == 'any') { %> {{abbreviate(<%= entityInstance %>.<%= fields[fieldId].fieldName %>) + ' ' + byteSize(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}}<% } else { %> {{byteSize(<%= entityInstance %>.<%= fields[fieldId].fieldName %>)}}<% } %> <% } else { %> <% } %><% } %><% for (relationshipId in relationships) { var relationshipType = relationships[relationshipId].relationshipType; var ownerSide = relationships[relationshipId].ownerSide; var relationshipFieldName = relationships[relationshipId].relationshipFieldName; var otherEntityName = relationships[relationshipId].otherEntityName; var otherEntityField = relationships[relationshipId].otherEntityField; var otherEntityFieldCapitalized = relationships[relationshipId].otherEntityFieldCapitalized; if (relationshipType == 'many-to-one' || (relationshipType == 'one-to-one' && ownerSide == true) || (relationshipType == 'many-to-many' && ownerSide == true && pagination == 'no')) { %> <% } } %>
ID<%=fields[fieldId].fieldNameCapitalized%><%=relationships[relationshipId].relationshipName%>
{{<%=entityInstance %>.id}}<% if (fields[fieldId].fieldIsEnum) { var enumPrefix = angularAppName + '.'+ fields[fieldId].fieldType;%> {{<%=entityInstance %>.<%=fields[fieldId].fieldName%>}} <% if (otherEntityName == 'user') { -%> <% if (relationshipType == 'many-to-many') { -%> {{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{$last ? '' : ', '}} <% } else { -%> <% if (dto == 'no') { -%> {{<%= entityInstance + "." + relationshipFieldName + "." + otherEntityField %>}} <% } else { -%> {{<%= entityInstance + "." + relationshipFieldName + otherEntityFieldCapitalized %>}} <% } -%> <% } -%> <% } else { -%> <% if (relationshipType == 'many-to-many') { -%> {{<%= relationshipFieldName %>.<%= otherEntityField %>}}{{$last ? '' : ', '}} <% } else { -%> <% if (dto == 'no') { -%> })">{{<%= entityInstance + "." + relationshipFieldName + "." + otherEntityField %>}} <% } else { -%> })">{{<%= entityInstance + "." + relationshipFieldName + otherEntityFieldCapitalized %>}} <% } -%> <% } -%> <% } -%>
<% if (pagination == 'pager') { %> <% } %><% if (pagination == 'pagination') { %> <% } %>