@(files: List[app.FileSearchResult], issueCount: Int, query: String, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main("Search Results", Some(repository)){ @menu("code", files.size, issueCount, query, repository){ @if(files.isEmpty){ <h4>We couldn't find any code matching '@query'</h4> } else { <h4>We've found @files.size code @plural(files.size, "result")</h4> } @files.map { file => <div> <h5><a href="@url(repository)/blob/@repository.repository.defaultBranch/@file.path">@file.path</a></h5> <div class="small muted">Latest commit at @datetime(file.lastModified)</div> <pre class="prettyprint linenums:@file.highlightLineNumber" style="padding-left: 25px;">@Html(file.highlightText)</pre> </div> } } }