{{!-- Job heading --}}
{{#if (eq (lowercase this.diff.Type) "added")}} + {{else if (eq (lowercase this.diff.Type) "deleted")}} - {{else if (eq (lowercase this.diff.Type) "edited")}} +/- {{/if}} Job: "{{this.diff.ID}}"
{{!-- Show job field and object diffs if the job is edited --}} {{#if (or this.verbose (eq (lowercase this.diff.Type) "edited"))}}
{{/if}} {{!-- Each task group --}} {{#each this.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") this.verbose)}}
{{/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 task.Annotations.length))}},{{/unless}} {{/each~}}) {{/if}} {{#if (or this.verbose (eq (lowercase task.Type) "edited"))}} {{/if}}
{{/each}}
{{/each}}