Skip to content

Commit

Permalink
[MBRA-1] - Fix formatting issue with voicemail to email HTML template (
Browse files Browse the repository at this point in the history
…2600hz#6473)

Address a small formatting issue with the template where the `if`
block for media file attachment was not wrapping to a new line in the
template preview.

- adds a missing <tr> opening tag
- wrap voicemail media file condition in a pre tag to wrap to a new
  line in branding app template viewer
  • Loading branch information
John White authored and jamesaimonetti committed Apr 13, 2020
1 parent d07ef04 commit b445175
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion applications/teletype/priv/templates/voicemail_to_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ <h2 style="margin:0;padding:0;text-align:center;font-family:'Open Sans',sans-ser
<h3 style="margin:0;padding:0;font-family:'Open Sans',sans-serif;color:#555555;font-weight:100;">Hi{% if user.first_name %} {{user.first_name}}{% endif %},</h3>
</td>
</tr>
<tr>
<td bgcolor="#ffffff" style="padding:20px;font-family:'Open Sans',sans-serif;color:#555555;">
<p style="margin:0;padding:0;font-family:'Open Sans',sans-serif;color:#555555;">You have a new voicemail from <b>{{caller_id.name_number}}</b> for your voicemail box at <b>{{voicemail.vmbox_name}} ({{voicemail.vmbox_number}})</b>.
<pre style="text-align: left;white-space: pre-line;">
{% if voicemail.file_name %}
<br><br>Please find the message audio file in the attachment.
{% endif %}
</p>
</pre>
</p>
</td>
</tr>
</table>
Expand Down

0 comments on commit b445175

Please sign in to comment.