forked from proxmox-mirrors/proxmox-backup

This commit adds a separate type for the data passed to this type of notification template. Also we make sure that we do not expose any non-primitive types to the template renderer, any data needed in the template is mapped into the new dedicated template data type. This ensures that any changes in types defined in other places do not leak into the template rendering process by accident. These changes are also preparation for allowing user-overrides for notification templates. This commit also tries to unify the style and naming of template variables. Signed-off-by: Lukas Wagner <l.wagner@proxmox.com> Reviewed-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
27 lines
447 B
Handlebars
27 lines
447 B
Handlebars
{{#if job-id~}}
|
|
Job ID: {{job-id}}
|
|
{{/if~}}
|
|
Datastore: {{datastore}}
|
|
Tape Pool: {{tape-pool}}
|
|
Tape Drive: {{tape-drive}}
|
|
|
|
{{#if snapshot-list~}}
|
|
Snapshots included:
|
|
|
|
{{#each snapshot-list~}}
|
|
{{this}}
|
|
{{/each~}}
|
|
{{/if}}
|
|
{{#if used-tapes-list}}
|
|
Used Tapes:
|
|
{{#each used-tapes-list~}}
|
|
{{this}}
|
|
{{/each~}}
|
|
{{/if}}
|
|
Tape Backup failed: {{error}}
|
|
|
|
|
|
Please visit the web interface for further details:
|
|
|
|
<{{base-url}}/#pbsServerAdministration:tasks>
|