mirror of https://github.com/go-gitea/gitea.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
813 B
27 lines
813 B
{{template "devtest/devtest-header"}} |
|
<div class="page-content devtest ui container"> |
|
<div class="flex-text-block tw-flex-wrap"> |
|
{{range $templateName := .MailTemplateNames}} |
|
<a class="ui button" href="?tmpl={{$templateName}}">{{$templateName}}</a> |
|
{{else}} |
|
<p>Mailer service is not enabled or no template is found</p> |
|
{{end}} |
|
</div> |
|
|
|
{{if .RenderMailTemplateName}} |
|
<div class="tw-my-2"> |
|
<div>Preview of: {{.RenderMailTemplateName}}</div> |
|
<div>Subject: {{.RenderMailSubject}}</div> |
|
<iframe src="{{AppSubUrl}}/devtest/mail-preview/{{.RenderMailTemplateName}}" class="mail-preview-body"></iframe> |
|
<style> |
|
.mail-preview-body { |
|
border: 1px solid #ccc; |
|
width: 100%; |
|
height: 400px; |
|
overflow: auto; |
|
} |
|
</style> |
|
</div> |
|
{{end}} |
|
</div> |
|
{{template "devtest/devtest-footer"}}
|
|
|