Skip to content

Commit e04497d

Browse files
committed
make test pass
1 parent 142ff7c commit e04497d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

templates/shared/search/code/results.tmpl

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@
2020
{{if $.PageIsExploreCode}}{{$repoLink = (index $.RepoMaps .RepoID).Link}}{{end}}
2121
<div class="diff-file-box diff-box file-content non-diff-file-content repo-search-result">
2222
<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>
2727
{{if $repo.IsArchived}}
2828
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
2929
{{end}}
30-
-{{end}} {{.Filename}}
31-
</span>
30+
- {{.Filename}}
31+
</span>
32+
{{else}}
33+
<span class="file gt-f1">{{.Filename}}</span>
34+
{{end}}
3235
<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>
3336
</h4>
3437
<div class="ui attached table segment">

0 commit comments

Comments
 (0)