Removed those fields from the mail body that are already included in the subject

This commit is contained in:
ChaoticByte 2023-10-16 16:23:43 +02:00
parent 734ae592ef
commit f753a368b7

View file

@ -8,12 +8,10 @@ import (
) )
const DEFAULT_SUBJECT_TEMPLATE = "{{ if .Status }}{{.Status}} {{ end }}[{{.Classification}}] {{.Title}}" const DEFAULT_SUBJECT_TEMPLATE = "{{ if .Status }}{{.Status}} {{ end }}[{{.Classification}}] {{.Title}}"
const DEFAULT_BODY_TEMPLATE = `{{.Name}} - "{{.Title}}" with classification '{{.Classification}}' const DEFAULT_BODY_TEMPLATE = `{{.Name}}
Link: {{.PortalUrl}} {{.PortalUrl}}
Published: {{.Published}} Published: {{.Published}}
{{ if .Status }}Status: {{.Status}}
{{ end -}}
{{ if gt .Basescore -1 }}Basescore: {{.Basescore}} {{ if gt .Basescore -1 }}Basescore: {{.Basescore}}
{{ end -}} {{ end -}}
{{ if eq .NoPatch "true" }}There is no patch available at the moment! {{ if eq .NoPatch "true" }}There is no patch available at the moment!