+
+ {{range $templateName := .MailTemplateNames}}
+
{{$templateName}}
+ {{else}}
+
Mailer service is not enabled or no template is found
+ {{end}}
+
+
+ {{if .RenderMailTemplateName}}
+
+
Preview of: {{.RenderMailTemplateName}}
+
Subject: {{.RenderMailSubject}}
+
+
+
+ {{end}}
+
+{{template "devtest/devtest-footer"}}
diff --git a/templates/mail/auth/activate.mock.yml b/templates/mail/auth/activate.mock.yml
new file mode 100644
index 0000000000..f5519a6f6c
--- /dev/null
+++ b/templates/mail/auth/activate.mock.yml
@@ -0,0 +1,3 @@
+DisplayName: User Display Name
+Code: The-Activation-Code
+ActiveCodeLives: 24h
diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl
index 959f2a9398..9dae6594b9 100644
--- a/templates/repo/commits_list.tmpl
+++ b/templates/repo/commits_list.tmpl
@@ -16,7 +16,7 @@
{{$userName := .Author.Name}}
- {{if .User}}
+ {{if and .User (gt .User.ID 0)}} /* User with id == 0 is a fake user from git author */
{{if and .User.FullName DefaultShowFullName}}
{{$userName = .User.FullName}}
{{end}}
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl
index 2e8261e479..aa483ec669 100644
--- a/templates/repo/diff/comments.tmpl
+++ b/templates/repo/diff/comments.tmpl
@@ -9,7 +9,7 @@
{{end}}
|