61 lines
1.6 KiB
Cheetah
61 lines
1.6 KiB
Cheetah
<h2>{{if .Email.Body.Title }}{{ .Email.Body.Title }}{{ else }}{{ .Email.Body.Greeting }} {{ .Email.Body.Name }},{{ end }}</h2>
|
|
{{ with .Email.Body.Intros }}
|
|
{{ range $line := . }}
|
|
<p>{{ $line }}</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if (ne .Email.Body.FreeMarkdown "") }}
|
|
{{ .Email.Body.FreeMarkdown.ToHTML }}
|
|
{{ else }}
|
|
{{ with .Email.Body.Dictionary }}
|
|
<ul>
|
|
{{ range $entry := . }}
|
|
<li>{{ $entry.Key }}: {{ $entry.Value }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
{{ with .Email.Body.Table }}
|
|
{{ $data := .Data }}
|
|
{{ $columns := .Columns }}
|
|
{{ if gt (len $data) 0 }}
|
|
<table class="data-table" width="100%" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
{{ $col := index $data 0 }}
|
|
{{ range $entry := $col }}
|
|
<th>{{ $entry.Key }} </th>
|
|
{{ end }}
|
|
</tr>
|
|
{{ range $row := $data }}
|
|
<tr>
|
|
{{ range $cell := $row }}
|
|
<td>
|
|
{{ $cell.Value }}
|
|
</td>
|
|
{{ end }}
|
|
</tr>
|
|
{{ end }}
|
|
</table>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with .Email.Body.Actions }}
|
|
{{ range $action := . }}
|
|
<p>
|
|
{{ $action.Instructions }}
|
|
{{ if $action.InviteCode }}
|
|
{{ $action.InviteCode }}
|
|
{{ end }}
|
|
{{ if $action.Button.Link }}
|
|
{{ $action.Button.Link }}
|
|
{{ end }}
|
|
</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with .Email.Body.Outros }}
|
|
{{ range $line := . }}
|
|
<p>{{ $line }}<p>
|
|
{{ end }}
|
|
{{ end }}
|
|
<p>{{.Email.Body.Signature}},<br>{{.Hermes.Product.Name}} - {{.Hermes.Product.Link}}</p>
|
|
<p>{{.Hermes.Product.Copyright}}</p>
|
|
` |