mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-20 02:57:05 +00:00
Messages with a MIME text/html MIME part will now be displayed with an `HTML` button above them that will open another window and render the HTML when clicked. There is no sanitization performed, and inline attachment display is not support. This closes #2
22 lines
505 B
HTML
22 lines
505 B
HTML
<div id="emailActions">
|
|
<a href="javascript:deleteMessage('{{.message.Id}}');">Delete</a>
|
|
<a href="javascript:messageSource('{{.message.Id}}');">Source</a>
|
|
{{if .htmlAvailable}}
|
|
<a href="javascript:htmlView('{{.message.Id}}');">HTML</a>
|
|
{{end}}
|
|
</div>
|
|
<table id="emailHeader">
|
|
<tr>
|
|
<th>From:</th>
|
|
<td>{{.message.From}}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Date:</th>
|
|
<td>{{.message.Date}}</td>
|
|
</tr>
|
|
<table>
|
|
<div id="emailSubject"><h3>{{.message.Subject}}</h3></div>
|
|
|
|
<pre id="emailBody">{{.body}}</pre>
|
|
|