mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-10-30 15:13:02 +00:00
Rename primitive search to title search
Makes more sense, actually
This commit is contained in:
@@ -11,10 +11,10 @@ import (
|
||||
)
|
||||
|
||||
func initSearch() {
|
||||
http.HandleFunc("/primitive-search/", handlerPrimitiveSearch)
|
||||
http.HandleFunc("/title-search/", handlerTitleSearch)
|
||||
}
|
||||
|
||||
func handlerPrimitiveSearch(w http.ResponseWriter, rq *http.Request) {
|
||||
func handlerTitleSearch(w http.ResponseWriter, rq *http.Request) {
|
||||
util.PrepareRq(rq)
|
||||
_ = rq.ParseForm()
|
||||
var (
|
||||
@@ -25,7 +25,7 @@ func handlerPrimitiveSearch(w http.ResponseWriter, rq *http.Request) {
|
||||
w,
|
||||
views.BaseHTML(
|
||||
"Search: "+query,
|
||||
views.PrimitiveSearchHTML(query, shroom.YieldHyphaNamesContainingString),
|
||||
views.TitleSearchHTML(query, shroom.YieldHyphaNamesContainingString),
|
||||
u,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user