1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-20 02:57:05 +00:00

Support down-converting of HTML to plain text

- Display a warning when text was generated from HTML
- Add a semi complicated, responsive HTML email for future testing
- Closes #20
This commit is contained in:
James Hillyerd
2016-03-03 19:44:48 -08:00
parent 86861eb747
commit 511e014a90
5 changed files with 413 additions and 8 deletions

View File

@@ -6,8 +6,8 @@ html {
body {
padding-top: 70px;
/* Margin bottom by footer height */
margin-bottom: 60px;
/* Margin bottom by footer height + safety */
margin-bottom: 100px;
}
.footer {

View File

@@ -60,6 +60,13 @@
</div>
</div>
{{if .isTextFromHTML}}
<div class="alert alert-warning" role="alert">
<strong>Notice:</strong> Message did not contain a plain text portion;
the text below was converted from HTML automatically.
</div>
{{end}}
<div class="message-body">{{.body}}</div>
{{with .attachments}}