changeset 1656:6dfad1ad59c8

Import queue: In email notifications generate links to <server>/#/?review=<id> when the state is "pending" and <server>/#/?importlog=<id> otherwise.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 21 Dec 2018 10:25:15 +0100
parents 34315277f2d6
children c354631e0018
files pkg/imports/queue.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/queue.go	Fri Dec 21 08:29:40 2018 +0100
+++ b/pkg/imports/queue.go	Fri Dec 21 10:25:15 2018 +0100
@@ -550,7 +550,7 @@
 
 Please follow this link to have a closer look at the details:
 
-{{ .Server }}/#/?review={{ .ID }}
+{{ .Server }}/#/?{{ if eq .State "pending" }}review{{ else }}importlog{{ end }}={{ .ID }}
 
 Best regards
     Your service team`))