{{#if (eq currentEntity 'flows')}}
{{#dataset-table
fields=entities as |table|}}
{{#table.head as |head|}}
{{#head.column}}
Flow Group
{{/head.column}}
{{#head.column}}
Flow Name
{{/head.column}}
{{#head.column}}
Flow Level
{{/head.column}}
{{#head.column}}
Job Count
{{/head.column}}
{{#head.column}}
Creation Time
{{/head.column}}
{{#head.column}}
Modified Time
{{/head.column}}
{{/table.head}}
{{#table.body as |body|}}
{{#each
table.data as |flow|}}
{{#body.row as |row|}}
{{#row.cell}}
{{flow.group}}
{{/row.cell}}
{{#row.cell}}
{{#link-to entityRoute flow.id (query-params name=flow.appCode)}}
{{flow.name}}
{{/link-to}}
{{/row.cell}}
{{#row.cell}}
{{flow.level}}
{{/row.cell}}
{{#row.cell}}
{{flow.jobCount}}
{{/row.cell}}
{{#row.cell}}
{{moment-calendar flow.created sameElse="MMM Do YYYY, h:mm a"}}
{{/row.cell}}
{{#row.cell}}
{{moment-calendar flow.modified sameElse="MMM Do YYYY, h:mm a"}}
{{/row.cell}}
{{/body.row}}
{{/each}}
{{/table.body}}
{{/dataset-table}}
{{else}}
{{#if entities}}
{{#dataset-table
fields=entities as |table|}}
{{#table.body as |body|}}
{{#each
table.data as |entity|}}
{{#body.row as |row|}}
{{#row.cell}}
{{#link-to entityRoute 'urn' (query-params urn=entity.uri)}}
{{entity.nativeName}}
{{/link-to}}
{{#if (eq currentEntity 'metrics')}}
{{entity.group}} - {{entity.dashboardName}}
{{entity.description}}
{{/if}}
{{#if entity.modifiedTime}}
Last Modified:
{{moment-from-now entity.modifiedTime }}
{{/if}}
{{/row.cell}}
{{/body.row}}
{{/each}}
{{/table.body}}
{{/dataset-table}}
{{else}}
{{empty-state
heading="No entities found"
subHead="Could not find any datasets in our records"
}}
{{/if}}
{{/if}}