{{!-- Job heading --}}
{{#if (eq (lowercase diff.Type) "added")}} + {{else if (eq (lowercase diff.Type) "deleted")}} - {{else if (eq (lowercase diff.Type) "edited")}} +/- {{/if}} Job: "{{diff.ID}}"
{{!-- Show job field and object diffs if the job is edited --}} {{#if (or verbose (eq (lowercase diff.Type) "edited"))}}
{{job-diff-fields-and-objects fields=diff.Fields objects=diff.Objects}}
{{/if}} {{!-- Each task group --}} {{#each diff.TaskGroups as |group|}}
{{#if (eq (lowercase group.Type) "added")}} + {{else if (eq (lowercase group.Type) "deleted")}} - {{else if (eq (lowercase group.Type) "edited")}} +/- {{/if}} Task Group: "{{group.Name}}" {{#if group.Updates}} ({{#each-in group.Updates as |updateType count|}} {{count}} {{updateType}} {{/each-in}}) {{/if}} {{!-- Show task group field and object diffs if the task group is edited --}} {{#if (or (eq (lowercase group.Type) "edited") verbose)}}
{{job-diff-fields-and-objects fields=group.Fields objects=group.Objects}}
{{/if}} {{!-- Each task --}} {{#each group.Tasks as |task|}}
{{#if (eq (lowercase task.Type) "added")}} + {{else if (eq (lowercase task.Type) "deleted")}} - {{else if (eq (lowercase task.Type) "edited")}} +/- {{/if}} Task: "{{task.Name}}" {{#if task.Annotations}} ({{#each task.Annotations as |annotation index|}} {{annotation}} {{#unless (eq index (dec annotations.length))}},{{/unless}} {{/each}}) {{/if}} {{#if (or verbose (eq (lowercase task.Type "edited")))}} {{job-diff-fields-and-objects fields=task.Fields objects=task.Objects}} {{/if}}
{{/each}}
{{/each}}