File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
templates/shared/search/code Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 20
20
{{if $.PageIsExploreCode}}{{$repoLink = (index $.RepoMaps .RepoID).Link}}{{end}}
21
21
<div class="diff-file-box diff-box file-content non-diff-file-content repo-search-result">
22
22
<h4 class="ui top attached normal header gt-df gt-fw">
23
- <span class="file gt-f1">
24
- {{if $.PageIsExploreCode}}
25
- {{$repo := (index $.RepoMaps .RepoID)}}
26
- <a rel="nofollow" href="{{$repoLink}}">{{$repo.FullName}}</a>
23
+ {{if $.PageIsExploreCode}}
24
+ <span class="file gt-f1">
25
+ {{$repo := (index $.RepoMaps .RepoID)}}
26
+ <a rel="nofollow" href="{{$repoLink}}">{{$repo.FullName}}</a>
27
27
{{if $repo.IsArchived}}
28
28
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
29
29
{{end}}
30
- -{{end}} {{.Filename}}
31
- </span>
30
+ - {{.Filename}}
31
+ </span>
32
+ {{else}}
33
+ <span class="file gt-f1">{{.Filename}}</span>
34
+ {{end}}
32
35
<a role="button" class="ui basic tiny button" rel="nofollow" href="{{$repoLink}}/src/commit/{{$result.CommitID | PathEscape}}/{{.Filename | PathEscapeSegments}}">{{ctx.Locale.Tr "repo.diff.view_file"}}</a>
33
36
</h4>
34
37
<div class="ui attached table segment">
You can’t perform that action at this time.
0 commit comments