diff options
author | chriswatt <info@chriswatt.org> | 2016-02-07 20:11:25 +0000 |
---|---|---|
committer | chriswatt <info@chriswatt.org> | 2016-02-07 20:11:25 +0000 |
commit | a881f776d04ff4fcdd1a4c81c699507fa716e9c1 (patch) | |
tree | 89bcb321afd7d9a9c53228585c98824f0154d152 | |
parent | 133397ee0d89921a4f5910324cec42ce15b57695 (diff) | |
download | gitea-a881f776d04ff4fcdd1a4c81c699507fa716e9c1.tar.gz gitea-a881f776d04ff4fcdd1a4c81c699507fa716e9c1.zip |
Make commits tab active when on diff page
-rw-r--r-- | templates/repo/header.tmpl | 2 |
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"> |