summaryrefslogtreecommitdiff
path: root/app/views/projects/commits
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-09 22:25:46 +0200
committerDouwe Maan <douwe@gitlab.com>2015-05-09 22:25:52 +0200
commit8f75ab21d021fb5335ed9e084157cf2bc06caca1 (patch)
tree5420fb7bc253329e65c14c99c4c926a7c5128d9d /app/views/projects/commits
parent40c8295a24aace3210a8bc485f853d556a8bdc5c (diff)
downloadgitlab-ce-8f75ab21d021fb5335ed9e084157cf2bc06caca1.tar.gz
Link Commits tab to current branch from Compare page.
Diffstat (limited to 'app/views/projects/commits')
-rw-r--r--app/views/projects/commits/_head.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commits/_head.html.haml b/app/views/projects/commits/_head.html.haml
index a714f5f79e0..66101f3f0da 100644
--- a/app/views/projects/commits/_head.html.haml
+++ b/app/views/projects/commits/_head.html.haml
@@ -1,6 +1,6 @@
%ul.nav.nav-tabs
= nav_link(controller: [:commit, :commits]) do
- = link_to namespace_project_commits_path(@project.namespace, @project, @repository.root_ref) do
+ = link_to namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref) do
Commits
%span.badge= number_with_precision(@repository.commit_count, precision: 0, delimiter: ',')
= nav_link(controller: :compare) do