Merge pull request #4 from btcdanny/patch-1

body-sub table, new row for each action closes #2
This commit is contained in:
Mathieu Cornic 2017-04-02 20:33:17 +02:00 committed by GitHub
commit 8fb17c006b
1 changed files with 6 additions and 6 deletions

View File

@ -343,14 +343,14 @@ func (dt *Default) HTMLTemplate() string {
{{ with .Email.Body.Actions }}
<table class="body-sub">
<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>
<p class="sub"><a href="{{ $action.Button.Link }}">{{ $action.Button.Link }}</a></p>
</td>
<tr>
<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"><a href="{{ $action.Button.Link }}">{{ $action.Button.Link }}</a></p>
</td>
</tr>
{{ end }}
</tr>
</tbody>
</table>
{{ end }}