mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-22 05:36:16 +00:00
default search to local when specified
This commit is contained in:
parent
df33a23c7b
commit
d9faec35f9
|
@ -2,6 +2,9 @@
|
||||||
<div class="{{ if .User }}user {{end}}side">
|
<div class="{{ if .User }}user {{end}}side">
|
||||||
<form method="GET" action="/{{.Host}}/search">
|
<form method="GET" action="/{{.Host}}/search">
|
||||||
<input type="text" placeholder="search" name="q" value="">
|
<input type="text" placeholder="search" name="q" value="">
|
||||||
|
{{- if eq .Listing "Local" }}
|
||||||
|
<input type="hidden" placeholder="search" name="listingType" value="Local">
|
||||||
|
{{- end }}
|
||||||
{{- if .User }}
|
{{- if .User }}
|
||||||
<input type="hidden" name="username" value="{{.UserName}}">
|
<input type="hidden" name="username" value="{{.UserName}}">
|
||||||
{{- else if .Community }}
|
{{- else if .Community }}
|
||||||
|
|
Loading…
Reference in a new issue