grain/app/views/index.html

25 lines
634 B
HTML
Raw Normal View History

2024-07-23 20:40:39 +00:00
{{define "view"}}
<main class="flex flex-col items-center justify-center p-8">
<div class="mb-4">You are now viewing the {{.Title}}</div>
2024-08-06 14:34:53 +00:00
<!--<h2>Top Ten Most Recent Events</h2>
<ul>
{{range .Events}}
<li>
<strong>ID:</strong> {{.ID}}<br />
<strong>Content:</strong> {{.Content}}<br />
<strong>Created At:</strong> {{.CreatedAt}}<br />
<strong>PubKey:</strong> {{.PubKey}}
</li>
{{end}}
2024-08-06 14:34:53 +00:00
</ul>-->
2024-08-06 19:35:52 +00:00
<button
hx-get="/import-events"
hx-swap="outerHTML"
class="p-2 mb-2 text-white bg-purple-500 rounded-md"
2024-08-06 19:35:52 +00:00
hx-target="body"
2024-08-06 14:34:53 +00:00
>
2024-08-06 19:35:52 +00:00
Import Events
</button>
2024-07-23 20:40:39 +00:00
</main>
{{end}}