mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-27 05:05:56 +00:00
ui(code-search): fix to use CodeSearchMode
Drop unused IsFuzzy and IsRegExp
This commit is contained in:
parent
7068456d20
commit
d2efdda911
5 changed files with 2 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
|||
{{if $.CodeIndexerDisabled}}
|
||||
{{$branchURLPrefix := printf "%s/search/branch/" $.RepoLink}}
|
||||
{{$tagURLPrefix := printf "%s/search/tag/" $.RepoLink}}
|
||||
{{$suffix := printf "?q=%s&fuzzy=%t" (.Keyword|QueryEscape) .IsFuzzy}}
|
||||
{{$suffix := printf "?q=%s&mode=%s" (.Keyword|QueryEscape) .CodeSearchMode}}
|
||||
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mb-3" "branchURLPrefix" $branchURLPrefix "branchURLSuffix" $suffix "tagURLPrefix" $tagURLPrefix "tagURLSuffix" $suffix}}
|
||||
{{end}}
|
||||
{{template "shared/search/code/search" .}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue