diff --git a/build/notify/root/opt/yunion/share/local-templates/content@cn/PENDING_DELETE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@cn/PENDING_DELETE.tmpl new file mode 100644 index 0000000000..ce9bcd5141 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@cn/PENDING_DELETE.tmpl @@ -0,0 +1,14 @@ +{{- $d := .resource_details -}} +您在{{ $d.project }}项目的 + +{{- if $d.ips -}} +IP地址为{{ $d.ips }}的 +{{- end -}} + +{{- if $d.ip_addr -}} +IP地址为{{ $d.ip_addr }}的 +{{- end -}} +{{- if $d.brand -}} +{{ $d.brand }}平台 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}已经成功加入回收站 diff --git a/build/notify/root/opt/yunion/share/local-templates/content@en/PENDING_DELETE.tmpl b/build/notify/root/opt/yunion/share/local-templates/content@en/PENDING_DELETE.tmpl new file mode 100644 index 0000000000..f36ac0d7fa --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/content@en/PENDING_DELETE.tmpl @@ -0,0 +1,22 @@ +{{- $d := .resource_details -}} +Your {{ if $d.brand -}} {{ $d.brand }} {{ end -}} {{ .resource_type_display }} {{ $d.name }} +{{ if $d.project -}} in project {{ $d.project }} {{ end -}} has been added to recycle bin successfully +{{- if $d.private_dns -}} +, the intranet address is {{ $d.private_dns }}:{{ $d.private_connect_port }} +{{- end -}} + +{{- if $d.public_dns -}} +, the external address is {{ $d.public_dns }}:{{ $d.public_connect_port }} +{{- end -}} + +{{- if and $d.address_type $d.address -}} +, the service address is {{ $d.address_type }}{{ $d.address }} +{{- end -}} + +{{- if $d.ips -}} +, the IP address is {{ $d.ips }} +{{- end -}} + +{{- if $d.ip_addr -}} +, the IP address is {{ $d.ip_addr }} +{{- end -}} diff --git a/build/notify/root/opt/yunion/share/local-templates/title@cn/PENDING_DELETE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@cn/PENDING_DELETE.tmpl new file mode 100644 index 0000000000..f448555808 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@cn/PENDING_DELETE.tmpl @@ -0,0 +1,5 @@ +{{- $d := .resource_details -}} +{{- if $d.project -}} +{{ $d.project }}项目的 +{{- end -}} +{{ .resource_type_display }}{{ $d.name }}成功加入回收站 diff --git a/build/notify/root/opt/yunion/share/local-templates/title@en/PENDING_DELETE.tmpl b/build/notify/root/opt/yunion/share/local-templates/title@en/PENDING_DELETE.tmpl new file mode 100644 index 0000000000..85a5f28184 --- /dev/null +++ b/build/notify/root/opt/yunion/share/local-templates/title@en/PENDING_DELETE.tmpl @@ -0,0 +1,2 @@ +{{- $d := .resource_details -}} +The {{ .resource_type_display }} {{ .Name }} {{ if $d.project }} in poject {{ $d.project }} {{ end -}} has been added to recycle bin successfully