From 3fcc58d452b10b880f8ebe1fbd1bdeb81b249011 Mon Sep 17 00:00:00 2001 From: Rob Fletcher Date: Tue, 1 Mar 2016 14:46:02 -0800 Subject: [PATCH] new email notification type --- .../templates/appOwnership/body-email.vm | 29 +++++++++++++++++++ .../templates/appOwnership/subject.vm | 1 + 2 files changed, 30 insertions(+) create mode 100644 echo-notifications/src/main/resources/templates/appOwnership/body-email.vm create mode 100644 echo-notifications/src/main/resources/templates/appOwnership/subject.vm diff --git a/echo-notifications/src/main/resources/templates/appOwnership/body-email.vm b/echo-notifications/src/main/resources/templates/appOwnership/body-email.vm new file mode 100644 index 000000000..74317fa2d --- /dev/null +++ b/echo-notifications/src/main/resources/templates/appOwnership/body-email.vm @@ -0,0 +1,29 @@ +#if($notification.additionalContext.outdated.size() > 0) +The following applications are owned by ex-employees: + +#foreach($application in $notification.additionalContext.outdated) + $application.name in $application.accounts owned by $application.owner.name<$application.owner.email> + #if($application.suggestedOwner) + - suggest reassigning to $application.suggestedOwner.name<$application.suggestedOwner.email>. + #else + - no suggested owner found for reassignment. + #end +#end + +#end +#if($notification.additionalContext.unknown.size() > 0) +The following applications are owned by unidentifiable users: + +#foreach($application in $notification.additionalContext.unknown) + $application.name in $application.accounts owned by <$application.owner.email> +#end + +#end +#if($notification.additionalContext.multiple.size() > 0) +The owner email for the following applications matches multiple users: + +#foreach($application in $notification.additionalContext.multiple) + $application.name in $application.accounts owned by <$application.owner.email> +#end + +#end diff --git a/echo-notifications/src/main/resources/templates/appOwnership/subject.vm b/echo-notifications/src/main/resources/templates/appOwnership/subject.vm new file mode 100644 index 000000000..ee5d2d10b --- /dev/null +++ b/echo-notifications/src/main/resources/templates/appOwnership/subject.vm @@ -0,0 +1 @@ +Report of issues with application owners