body-sub table, new row for each action

Fixes styling issues when more than one button is included in the body of the email by moving each button alternative link to a new row.
This commit is contained in:
Danny Brewster 2017-04-02 18:06:37 +01:00 committed by GitHub
parent 4396ae87e6
commit b3465f76a2
1 changed files with 6 additions and 6 deletions

View File

@ -343,14 +343,14 @@ func (dt *Default) HTMLTemplate() string {
{{ with .Email.Body.Actions }} {{ with .Email.Body.Actions }}
<table class="body-sub"> <table class="body-sub">
<tbody> <tbody>
<tr>
{{ range $action := . }} {{ range $action := . }}
<td> <tr>
<p class="sub">If youre having trouble with the button '{{ $action.Button.Text }}', copy and paste the URL below into your web browser.</p> <td>
<p class="sub"><a href="{{ $action.Button.Link }}">{{ $action.Button.Link }}</a></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>
</td> <p class="sub"><a href="{{ $action.Button.Link }}">{{ $action.Button.Link }}</a></p>
</td>
</tr>
{{ end }} {{ end }}
</tr>
</tbody> </tbody>
</table> </table>
{{ end }} {{ end }}