mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 03:26:06 +01:00
(refs #3)Add search form at the top of search result.
This commit is contained in:
@@ -41,7 +41,7 @@ trait IndexControllerBase extends ControllerBase { self: RepositoryService
|
||||
|
||||
get("/:owner/:repository/search")(referrersOnly { repository =>
|
||||
val query = params("q")
|
||||
val target = params.getOrElse("type", "Code")
|
||||
val target = params.getOrElse("type", "code")
|
||||
|
||||
target.toLowerCase match {
|
||||
case "issue" => {
|
||||
|
||||
Reference in New Issue
Block a user