We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1610296 commit daf70d3Copy full SHA for daf70d3
templates/repo/header.tmpl
@@ -48,7 +48,7 @@
48
<div class="ui tabs container">
49
<div class="ui tabular stackable menu navbar">
50
{{if .Repository.UnitEnabled $.UnitTypeCode}}
51
- <a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}">
+ <a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/branch/{{.BranchName}}{{end}}">
52
<i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}}
53
</a>
54
{{end}}
0 commit comments