summaryrefslogtreecommitdiffstats
path: root/templates/repo/toolbar.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/toolbar.tmpl')
-rw-r--r--templates/repo/toolbar.tmpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl
index 4a0b60adad..49a37ef466 100644
--- a/templates/repo/toolbar.tmpl
+++ b/templates/repo/toolbar.tmpl
@@ -4,9 +4,10 @@
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="/{{.RepositoryLink}}">Source</a></li>
- <li><a href="/{{.RepositoryLink}}/commits">Commits</a></li>
- <li><a href="/{{.RepositoryLink}}/issues">Issues <!--<span class="badge">42</span>--></a></li>
- <li><a href="/{{.RepositoryLink}}/pulls">Pull Requests</a></li>
+ <li class="{{if .IsRepoToolbarCommits}}active{{end}}"><a href="/{{.RepositoryLink}}/commits">Commits</a></li>
+ <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>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a>
<ul class="dropdown-menu">