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> </a>
</td> </td>
</tr> </tr>
<!-- Email Body --> <!-- Email Body -->
<tr> <tr>
<td class="email-body" width="100%"> <td class="email-body" width="100%">
@ -314,7 +315,9 @@ func (dt *Default) HTMLTemplate() string {
<tr> <tr>
<td align="center"> <td align="center">
<div> <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> </div>
</td> </td>
</tr> </tr>
@ -333,13 +336,14 @@ func (dt *Default) HTMLTemplate() string {
<p> <p>
{{.Email.Body.Signature}}, {{.Email.Body.Signature}},
<br> <br />
{{.Hermes.Product.Name}} {{.Hermes.Product.Name}}
</p> </p>
{{ with .Email.Body.Actions }} {{ with .Email.Body.Actions }}
<table class="body-sub"> <table class="body-sub">
<tbody><tr> <tbody>
<tr>
{{ range $action := . }} {{ range $action := . }}
<td> <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> <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.", 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 // Default one overrides all zero values
err := mergo.Merge(h, defaultHermes) err := mergo.Merge(h, defaultHermes)
if err != nil { if err != nil {