mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-23 00:57:14 +00:00
25 lines
634 B
HTML
25 lines
634 B
HTML
{{define "view"}}
|
|
<main class="flex flex-col items-center justify-center p-8">
|
|
<div class="mb-4">You are now viewing the {{.Title}}</div>
|
|
<!--<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}}
|
|
</ul>-->
|
|
<button
|
|
hx-get="/import-events"
|
|
hx-swap="outerHTML"
|
|
class="p-2 mb-2 text-white bg-purple-500 rounded-md"
|
|
hx-target="body"
|
|
>
|
|
Import Events
|
|
</button>
|
|
</main>
|
|
{{end}}
|