@(files: List[gitbucket.core.service.RepositorySearchService.FileSearchResult], issueCount: Int, query: String, page: Int, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @import gitbucket.core.service.RepositorySearchService._ @html.main("Search Results", Some(repository)){ @menu("code", files.size, issueCount, query, repository){ @if(files.isEmpty){

#### We couldn't find any code matching '@query'

} else {

#### We've found @files.size code @plural(files.size, "result")

} @files.drop((page - 1) * CodeLimit).take(CodeLimit).map { file =>

##### @file.path

Last committed @helper.html.datetimeago(file.lastModified)

    @Html(file.highlightText)

} @helper.html.paginator(page, files.size, CodeLimit, 10, s"${url(repository)}/search?q=${urlEncode(query)}&type=code") } }