]> git.proxmox.com Git - pmg-api.git/blob - src/templates/backup-notification.tt
3f956b0c300ed96bd2416fd45c38846e52bffdf3
[pmg-api.git] / src / templates / backup-notification.tt
1 [%- IF err -%]
2 [%- SET titleprefix = "Backup failed" -%]
3 [%- ELSE %]
4 [%- SET titleprefix = "Backup successful" -%]
5 [%- END -%]
6 [%- IF target -%]
7 [%- SET titlesuffix = "to ${target} - ($fqdn)" -%]
8 [%- ELSE %]
9 [%- SET titlesuffix = "($fqdn)" -%]
10 [%- END -%]
11 <html>
12 <head>
13 <title>[% titleprefix %] [% titlesuffix %]</title>
14 </head>
15 <body>
16 Detailed backup logs:<br /><br />
17 <pre>[% log %]</pre>
18 </body>
19 </html>