mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-08 05:37:56 -05:00
🐛 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:
parent
5e00ea8d94
commit
1b7717b8eb
@ -21,7 +21,7 @@ func (s *Server) handleIndex(c *fiber.Ctx) error {
|
|||||||
"KYC is a scam. Don't fall for it.",
|
"KYC is a scam. Don't fall for it.",
|
||||||
}
|
}
|
||||||
|
|
||||||
t := c.Query("t", "exchange")
|
t := c.Query("t", "")
|
||||||
q := c.Query("q", "")
|
q := c.Query("q", "")
|
||||||
|
|
||||||
// Currencies
|
// Currencies
|
||||||
|
@ -8,14 +8,14 @@
|
|||||||
<!-- Filters -->
|
<!-- Filters -->
|
||||||
<div class="text-center text-gray-500">
|
<div class="text-center text-gray-500">
|
||||||
<a href="/">
|
<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>
|
<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>
|
||||||
<a href="/?t=service">
|
<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>
|
<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>
|
||||||
<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>
|
</div>
|
||||||
|
|
||||||
<form action="/">
|
<form action="/">
|
||||||
|
Loading…
Reference in New Issue
Block a user