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:
parent
4396ae87e6
commit
b3465f76a2
12
default.go
12
default.go
|
@ -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 you’re 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 you’re 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 }}
|
||||||
|
|
Loading…
Reference in New Issue