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

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

} else {

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

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

##### @file.path

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

    @Html(file.highlightText)

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