aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-07 15:37:22 -0500
committerUnknwon <u@gogs.io>2016-02-07 15:37:22 -0500
commitb09ddc72d27b8bd9d631f58463e141397c0cc00c (patch)
tree6ac9c2e041d1604eb8ec424f5a818f3ab5941170 /templates
parentdd7608a36ebe3fcb9bd058442ab4226f4138a172 (diff)
parenta881f776d04ff4fcdd1a4c81c699507fa716e9c1 (diff)
downloadgitea-b09ddc72d27b8bd9d631f58463e141397c0cc00c.tar.gz
gitea-b09ddc72d27b8bd9d631f58463e141397c0cc00c.zip
Merge pull request #2581 from chriswatt/committab
Make commits tab active when on diff page
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 3a1f9cc16b..cab0fb53d4 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -61,7 +61,7 @@
<i class="icon octicon octicon-git-pull-request"></i> {{.i18n.Tr "repo.pulls"}} <span class="ui {{if not .Repository.NumOpenPulls}}gray{{else}}blue{{end}} small label">{{.Repository.NumOpenPulls}}</span>
</a>
{{end}}
- <a class="{{if .PageIsCommits}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}">
+ <a class="{{if (or (.PageIsCommits) (.PageIsDiff))}}active{{end}} item" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}">
<i class="icon octicon octicon-history"></i> {{.i18n.Tr "repo.commits"}} <span class="ui {{if not .CommitsCount}}gray{{else}}blue{{end}} small label">{{.CommitsCount}}</span>
</a>
<a class="{{if .PageIsReleaseList}}active{{end}} item" href="{{.RepoLink}}/releases">