1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-06-06 22:16:11 +02:00

27 lines
1.0 KiB
HTML
Raw Normal View History

2021-10-07 16:23:34 +03:00
{{ define "content" }}
<div class="container">
2021-10-08 13:25:43 +03: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-08 13:25:43 +03:00
{{ range .Data.Messages }}
2021-10-07 16:23:34 +03:00
<tr>
2021-10-10 18:49:39 +03:00
<td>{{ .TimeFmt }} ago</td>
2021-10-07 16:23:34 +03:00
<td>{{ .Text }}</td>
<td>{{ .Source }}</td>
</tr>
{{ else }}
<tr>
<td colspan="3">No messages</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
{{ end }}