Skip to content

Commit

Permalink
Fix code tab link when viewing tags (#3908) (#4263)
Browse files Browse the repository at this point in the history
Signed-off-by: Ambrose Chua <ambrose@chua.family>
  • Loading branch information
johnrazeur authored and daviian committed Jun 17, 2018
1 parent 00ad474 commit 8b2df73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div class="ui tabs container">
<div class="ui tabular stackable menu navbar">
{{if .Repository.UnitEnabled $.UnitTypeCode}}
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/branch/{{.BranchName}}{{end}}">
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/{{.BranchNameSubURL}}{{end}}">
<i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}}
</a>
{{end}}
Expand Down

0 comments on commit 8b2df73

Please sign in to comment.