style: Fix indentation of the theme

This commit is contained in:
Thibaut Rousseau 2017-04-01 22:34:29 +02:00
parent f983d8d7c5
commit 8ffbdf7305
2 changed files with 112 additions and 108 deletions

View File

@ -227,6 +227,7 @@ func (dt *Default) HTMLTemplate() string {
</a>
</td>
</tr>
<!-- Email Body -->
<tr>
<td class="email-body" width="100%">
@ -314,7 +315,9 @@ func (dt *Default) HTMLTemplate() string {
<tr>
<td align="center">
<div>
<a href="{{ $action.Button.Link }}" class="button" style="background-color: {{ $action.Button.Color }}" target="_blank">{{ $action.Button.Text }}</a>
<a href="{{ $action.Button.Link }}" class="button" style="background-color: {{ $action.Button.Color }}" target="_blank">
{{ $action.Button.Text }}
</a>
</div>
</td>
</tr>
@ -333,13 +336,14 @@ func (dt *Default) HTMLTemplate() string {
<p>
{{.Email.Body.Signature}},
<br>
<br />
{{.Hermes.Product.Name}}
</p>
{{ with .Email.Body.Actions }}
<table class="body-sub">
<tbody><tr>
<tbody>
<tr>
{{ range $action := . }}
<td>
<p class="sub">If youre having trouble with the button '{{ $action.Button.Text }}', copy and paste the URL below into your web browser.</p>

View File

@ -124,7 +124,7 @@ func setDefaultHermesValues(h *Hermes) error {
Copyright: "Copyright © 2017 Hermes. All rights reserved.",
},
}
// Merge the given hermes engine coniguration with default one
// Merge the given hermes engine configuration with default one
// Default one overrides all zero values
err := mergo.Merge(h, defaultHermes)
if err != nil {