diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-31 23:23:21 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-31 23:23:21 +0100 |
commit | 3dd0c252e554c194260ca278803fa2eb4699b89b (patch) | |
tree | 4cccb10d1f33da5ef5ec676e6fca6e7a6d088205 /app/views/projects/tree/_tree_header.html.haml | |
parent | 818b21287598a5efb7d81e39116c0847d8e67461 (diff) | |
download | gitlab-ce-3dd0c252e554c194260ca278803fa2eb4699b89b.tar.gz |
Only show target dropdown if new_repo
Diffstat (limited to 'app/views/projects/tree/_tree_header.html.haml')
-rw-r--r-- | app/views/projects/tree/_tree_header.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/tree/_tree_header.html.haml b/app/views/projects/tree/_tree_header.html.haml index 5df3d10d4eb..4bc6e599b26 100644 --- a/app/views/projects/tree/_tree_header.html.haml +++ b/app/views/projects/tree/_tree_header.html.haml @@ -1,8 +1,9 @@ .tree-ref-container .tree-ref-holder = render 'shared/ref_switcher', destination: 'tree', path: @path - =icon('long-arrow-right', title: 'to target branch') - = render 'shared/target_switcher', destination: 'tree', path: @path + - if !show_new_repo? + =icon('long-arrow-right', title: 'to target branch') + = render 'shared/target_switcher', destination: 'tree', path: @path - if !show_new_repo? = render 'projects/tree/old_tree_header' |