2021-10-13 21:45:44 +03:00
|
|
|
{{define "content" -}}
|
2021-10-07 16:23:34 +03:00
|
|
|
<div class="container">
|
2021-11-06 21:09:40 +02:00
|
|
|
<h3 class="my-4 ps-2">Recent messages ({{.Data.Count}}/{{.Data.Total}})</h3>
|
2021-10-07 16:23:34 +03:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Time</th>
|
|
|
|
<th scope="col">Message</th>
|
|
|
|
<th scope="col">Source</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-10-13 21:45:44 +03:00
|
|
|
{{- range .Data.Messages}}
|
2021-10-07 16:23:34 +03:00
|
|
|
<tr>
|
2021-10-13 21:45:44 +03:00
|
|
|
<td>{{.TimeFmt}} ago</td>
|
|
|
|
<td>{{.Text}}</td>
|
|
|
|
<td>{{.Source}}</td>
|
2021-10-07 16:23:34 +03:00
|
|
|
</tr>
|
2021-10-13 21:45:44 +03:00
|
|
|
{{- else}}
|
2021-10-07 16:23:34 +03:00
|
|
|
<tr>
|
|
|
|
<td colspan="3">No messages</td>
|
|
|
|
</tr>
|
2021-10-13 21:45:44 +03:00
|
|
|
{{- end}}
|
2021-10-07 16:23:34 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-10-13 21:45:44 +03:00
|
|
|
{{- end}}
|