This commit is contained in:
parent
4f3ba41237
commit
d5db5b81f9
|
@ -12,7 +12,7 @@ templ Filter(params api.ListSubredditsParams) {
|
||||||
hx-include="this"
|
hx-include="this"
|
||||||
hx-push-url="true"
|
hx-push-url="true"
|
||||||
hx-swap="outerHTML"
|
hx-swap="outerHTML"
|
||||||
class="grid grid-cols-[1fr,4fr] sm:grid-cols-[1fr,4fr,1fr,4fr] items-center gap-4"
|
class="grid grid-cols-[1fr,3fr] sm:grid-cols-[1fr,4fr,1fr,4fr] items-center gap-4"
|
||||||
>
|
>
|
||||||
@searchInput(params)
|
@searchInput(params)
|
||||||
@nsfwSelect(params)
|
@nsfwSelect(params)
|
||||||
|
|
|
@ -43,7 +43,7 @@ templ Content(c *views.Context, data Data) {
|
||||||
<h3>No Subreddits Found</h3>
|
<h3>No Subreddits Found</h3>
|
||||||
<p>Click <a class="text-primary" href="/subreddits/add">here</a> to add a new subreddit.</p>
|
<p>Click <a class="text-primary" href="/subreddits/add">here</a> to add a new subreddit.</p>
|
||||||
} else {
|
} else {
|
||||||
<h2 class="my-4">{ strconv.FormatInt(data.Subreddits.Total, 10) } Subreddits Registered</h2>
|
<h2 class="my-8">{ strconv.FormatInt(data.Subreddits.Total, 10) } Subreddits Registered</h2>
|
||||||
}
|
}
|
||||||
<div class="flex flex-wrap gap-1 justify-around" hx-boost="true">
|
<div class="flex flex-wrap gap-1 justify-around" hx-boost="true">
|
||||||
for _, subreddit := range data.Subreddits.Data {
|
for _, subreddit := range data.Subreddits.Data {
|
||||||
|
|
Loading…
Reference in a new issue