mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
- No UI to access, just append /mailbox to /monitor URL
- Changed API URLs:
- /api/v1/monitor/messages - all
- /api/v1/monitor/messages/{name} - specific
59 lines
1.3 KiB
HTML
59 lines
1.3 KiB
HTML
{{define "title"}}Inbucket Monitor{{end}}
|
|
|
|
{{define "script"}}
|
|
<script src="/public/monitor.js" type="text/javascript" charset="utf-8"></script>
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('#nav-monitor').addClass('active');
|
|
startMonitor('{{.name}}');
|
|
});
|
|
</script>
|
|
<script type="text/html" id="message-template">
|
|
<tr data-href="href" onclick="messageClick(this);">
|
|
<td data-content="date" data-format="date"/>
|
|
<td data-content-text="from"/>
|
|
<td data-content-text="mailbox"/>
|
|
<td data-content-text="subject" data-format="subject"/>
|
|
</tr>
|
|
</script>
|
|
{{end}}
|
|
|
|
{{define "menu"}}
|
|
<div id="logo">
|
|
<h1><a href="/">inbucket</a></h1>
|
|
<h2>email testing service</h2>
|
|
</div>
|
|
{{end}}
|
|
|
|
{{define "content"}}
|
|
<h2>Inbucket Monitor</h2>
|
|
|
|
<div class="pull-right">
|
|
<button class="btn btn-primary" onclick="clearClick();">Clear</button>
|
|
</div>
|
|
|
|
<p class="small">
|
|
Messages will be listed here shortly after delivery.
|
|
{{with .name}}
|
|
Only showing messages for mailbox <code>{{.}}</code>.
|
|
{{end}}
|
|
</p>
|
|
|
|
<div class="table-responsive clearfix">
|
|
<table class="table table-condensed table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>From</th>
|
|
<th>Mailbox</th>
|
|
<th>Subject</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="monitor-message-list"></tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="conn-status">Connecting...</div>
|
|
{{end}}
|
|
|