🐛 fix(handlers_web.go): change default value of 't' query parameter to an empty string to make "all" default

🐛 fix(index.html): make 'All' filter option default
This commit is contained in:
pluja 2023-11-01 10:24:51 +01:00
parent 5e00ea8d94
commit 1b7717b8eb
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ func (s *Server) handleIndex(c *fiber.Ctx) error {
"KYC is a scam. Don't fall for it.",
}
t := c.Query("t", "exchange")
t := c.Query("t", "")
q := c.Query("q", "")
// Currencies

View File

@ -8,14 +8,14 @@
<!-- Filters -->
<div class="text-center text-gray-500">
<a href="/">
<span class="p-1 {{if eq "" .Filters.Type}}border-b border-lime-500/60 text-lime-500{{end}} text-xs">All</span>
</a>
<a href="/?t=exchange">
<span class="p-1 {{if eq "exchange" .Filters.Type}}border-b border-lime-500/60 text-lime-500{{end}} text-xs">Exchanges</span>
</a>
<a href="/?t=service">
<span class="p-1 {{if eq "service" .Filters.Type}}border-b border-lime-500/60 text-lime-500{{end}} text-xs">Services</span>
</a>
<a href="/?t=all">
<span class="p-1 {{if eq "all" .Filters.Type}}border-b border-lime-500/60 text-lime-500{{end}} text-xs">All</span>
</a>
</div>
<form action="/">