mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 10:07:02 +00:00
Load message list over JSON
- Add jquery-load-template to bower
- Add moment (date rendering) to bower
- Load message list JSON via /api/v1/mailbox
- Render message list using jquery template
- Fix resize related problems with message list height caused by
2092949dbc
This commit is contained in:
@@ -12,6 +12,15 @@ $(document).ready(function() {
|
||||
onDocumentReady();
|
||||
});
|
||||
</script>
|
||||
<script type="text/html" id="list-entry-template">
|
||||
<button data-id="id" type="button" class="listEntry list-group-item">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-md-12 text-primary" data-content="subject"/>
|
||||
<div class="col-sm-4 col-md-12 small" data-content="from"/>
|
||||
<div class="col-sm-4 col-md-12 small" data-content="date" data-format="DateFormatter"/>
|
||||
</div>
|
||||
</button>
|
||||
</script>
|
||||
{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
@@ -23,7 +32,7 @@ $(document).ready(function() {
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="text-center">
|
||||
<a href="javascript:reloadList()">
|
||||
<a href="javascript:loadList()">
|
||||
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
|
||||
Refresh
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user