|
|
@ -11,15 +11,15 @@
|
|
|
|
{{range $result := .SearchResults}}
|
|
|
|
{{range $result := .SearchResults}}
|
|
|
|
{{$repo := (index $.RepoMaps .RepoID)}}
|
|
|
|
{{$repo := (index $.RepoMaps .RepoID)}}
|
|
|
|
<div class="diff-file-box diff-box file-content non-diff-file-content repo-search-result">
|
|
|
|
<div class="diff-file-box diff-box file-content non-diff-file-content repo-search-result">
|
|
|
|
<h4 class="ui top attached normal header">
|
|
|
|
<h4 class="ui top attached normal header gt-df gt-fw">
|
|
|
|
<span class="file">
|
|
|
|
<span class="file gt-f1">
|
|
|
|
<a rel="nofollow" href="{{$repo.Link}}">{{$repo.FullName}}</a>
|
|
|
|
<a rel="nofollow" href="{{$repo.Link}}">{{$repo.FullName}}</a>
|
|
|
|
{{if $repo.IsArchived}}
|
|
|
|
{{if $repo.IsArchived}}
|
|
|
|
<span class="ui basic label">{{$.locale.Tr "repo.desc.archived"}}</span>
|
|
|
|
<span class="ui basic label">{{$.locale.Tr "repo.desc.archived"}}</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
- {{.Filename}}
|
|
|
|
- {{.Filename}}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<a class="ui basic tiny button" rel="nofollow" href="{{$repo.Link}}/src/commit/{{$result.CommitID | PathEscape}}/{{.Filename | PathEscapeSegments}}">{{$.locale.Tr "repo.diff.view_file"}}</a>
|
|
|
|
<a role="button" class="ui basic tiny button" rel="nofollow" href="{{$repo.Link}}/src/commit/{{$result.CommitID | PathEscape}}/{{.Filename | PathEscapeSegments}}">{{$.locale.Tr "repo.diff.view_file"}}</a>
|
|
|
|
</h4>
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<div class="ui attached table segment">
|
|
|
|
<div class="file-body file-code code-view">
|
|
|
|
<div class="file-body file-code code-view">
|
|
|
|