aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-27 21:15:53 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-27 21:15:53 -0400
commit5344a0300383c4921e4a5810dff58c7686412f0c (patch)
treeb1010551e0c1060f25eb69bdc7f5d66f5f2c844b /templates
parent8b700e825b7c39285cbc3e87a48b9bcb77864beb (diff)
downloadgitea-5344a0300383c4921e4a5810dff58c7686412f0c.tar.gz
gitea-5344a0300383c4921e4a5810dff58c7686412f0c.zip
Bug fix
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/toolbar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl
index e3390c77ca..ac516c37dd 100644
--- a/templates/repo/toolbar.tmpl
+++ b/templates/repo/toolbar.tmpl
@@ -5,7 +5,7 @@
<ul class="nav navbar-nav">
<li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="/{{.RepositoryLink}}">Source</a></li>
{{if not .IsBareRepo}}
- <li class="{{if .IsRepoToolbarCommits}}active{{end}}"><a href="/{{.RepositoryLink}}/commits/{{.Branchname}}">Commits</a></li>
+ {{if .IsViewBranch}}<li class="{{if .IsRepoToolbarCommits}}active{{end}}"><a href="/{{.RepositoryLink}}/commits/{{.Branchname}}">Commits</a></li>{{end}}
<!-- <li class="{{if .IsRepoToolbarBranches}}active{{end}}"><a href="/{{.RepositoryLink}}/branches">Branches</a></li> -->
<!-- <li class="{{if .IsRepoToolbarPulls}}active{{end}}"><a href="/{{.RepositoryLink}}/pulls">Pull Requests</a></li> -->
<li class="{{if .IsRepoToolbarIssues}}active{{end}}"><a href="/{{.RepositoryLink}}/issues">Issues <!--<span class="badge">42</span>--></a></li>