refactor: paragraph tag is not holding children in email template
This commit is contained in:
@@ -38,39 +38,25 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
{% for update in email_digest_updates %}
|
||||
{% if forloop.last or forloop.revcounter0 == 1 %}
|
||||
{% if email_digest_updates|length|add:'1'|divisibleby:3 and not forloop.last%}
|
||||
<td style="width: 16%; visibility: hidden;"></td>
|
||||
{% elif email_digest_updates|length|add:'2'|divisibleby:3 and forloop.last%}
|
||||
<td style="width: 16%; visibility: hidden;"></td>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<td width="33.33%">
|
||||
<p style="padding-right: 0.5rem; padding-left: 0.5rem; margin: 16px 0px">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" style="background: #1b3b40; color: white; border-radius: 8px; padding: 1.25rem 1rem;
|
||||
{% if forloop.last or forloop.revcounter0 == 1 %}
|
||||
{% if email_digest_updates|length|add:'1'|divisibleby:3 %}
|
||||
margin-left:-55%
|
||||
{% endif %}
|
||||
{% endif %}">
|
||||
<tbody>
|
||||
<tr align="center">
|
||||
<td style="font-weight: 700; font-size: 32px; line-height: 44px; padding: 0">
|
||||
{{update.count}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td style="font-weight: 600; font-size: 0.875rem; line-height: 20px; padding: 0">
|
||||
{{update.title}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</p>
|
||||
<td width="33.33%" style="padding: 0.5rem;">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" style="background: #1b3b40; color: white; border-radius: 8px; padding: 1.25rem 1rem;">
|
||||
<tbody>
|
||||
<tr align="center">
|
||||
<td style="font-weight: 700; font-size: 32px; line-height: 44px; padding: 0">
|
||||
{{update.count}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td style="font-weight: 600; font-size: 0.875rem; line-height: 20px; padding: 0">
|
||||
{{update.title}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
{% if forloop.counter|divisibleby:3 %}
|
||||
</tr> <!-- Close the row after every third td -->
|
||||
{% endif %}
|
||||
</tr> <!-- Close the row after every third td -->
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user