mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-18 03:10:39 +01:00
16 lines
613 B
HTML
16 lines
613 B
HTML
@(files: List[app.FileSearchResult], query: String, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
|
|
@import context._
|
|
@import view.helpers._
|
|
@html.main("Search Results", Some(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>
|
|
<div><a href="@url(repository)/blob/@repository.repository.defaultBranch/@file.path">@file.path</a></div>
|
|
<div class="muted">@datetime(file.lastModified)</div>
|
|
</div>
|
|
}
|
|
} |