Browse Source

Use the active branch for the code tab (#3720)

tags/v1.5.0-dev
Bwko Lauris BH 7 years ago
parent
commit
001d5b174b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/repo/header.tmpl

+ 1
- 1
templates/repo/header.tmpl View File

@@ -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}}">
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/branch/{{.BranchName}}{{end}}">
<i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}}
</a>
{{end}}


Loading…
Cancel
Save