Skip to content
Snippets Groups Projects
Unverified Commit 3083e5e4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Hide new file link if not branch HEAD

parent 160bd862
Branches
Tags
1 merge request!1Fix Links To Gitlab Cloud
Loading
@@ -10,6 +10,7 @@
Loading
@@ -10,6 +10,7 @@
= link_to truncate(title, length: 40), project_tree_path(@project, path) = link_to truncate(title, length: 40), project_tree_path(@project, path)
- else - else
= link_to title, '#' = link_to title, '#'
- if @repository.branch_names.include?(@ref)
\/ \/
%li %li
= link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do = link_to project_new_tree_path(@project, @id), title: 'New file', id: 'new-file-link' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment