summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-09 17:39:13 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-09 17:39:13 +0100
commit2cb542b9d365558923ed125f76c5005188dbee77 (patch)
tree5942778cca81c47463fa4333ce5e0b00d845962c /app
parent1d250b48922ef88b14ad8ce2af157e2f2d256773 (diff)
downloadgitlab-ce-2cb542b9d365558923ed125f76c5005188dbee77.tar.gz
remove unnecessary code
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/commits/_head.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/projects/commits/_head.html.haml b/app/views/projects/commits/_head.html.haml
index 2f604c82f11..fcccb002d7e 100644
--- a/app/views/projects/commits/_head.html.haml
+++ b/app/views/projects/commits/_head.html.haml
@@ -4,10 +4,9 @@
Commits
%span.badge= number_with_delimiter(@repository.commit_count)
- - if project_nav_tab? :network
- = nav_link(controller: %w(network)) do
- = link_to namespace_project_network_path(@project.namespace, @project, current_ref), class: 'shortcuts-network' do
- Network
+ = nav_link(controller: %w(network)) do
+ = link_to namespace_project_network_path(@project.namespace, @project, current_ref) do
+ Network
= nav_link(controller: :compare) do
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: current_ref) do