diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-01-11 16:42:41 +0200 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2018-01-19 19:15:48 +0200 |
commit | 0b60e13ae1fa28f18c753fc0fedb92dd404791db (patch) | |
tree | 30c53e621bcb86eec61be3c61430adf8d3b59183 /app/views/projects/tree | |
parent | 604c9133a75b235e3b537ad96dcf92ed6949ed65 (diff) | |
download | gitlab-ce-0b60e13ae1fa28f18c753fc0fedb92dd404791db.tar.gz |
Add section headers to plus button dropdown
Diffstat (limited to 'app/views/projects/tree')
-rw-r--r-- | app/views/projects/tree/_tree_header.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/tree/_tree_header.html.haml b/app/views/projects/tree/_tree_header.html.haml index d1ecef39475..05539dfed7c 100644 --- a/app/views/projects/tree/_tree_header.html.haml +++ b/app/views/projects/tree/_tree_header.html.haml @@ -24,6 +24,8 @@ .add-to-tree-dropdown %ul.dropdown-menu - if can_edit_tree? + %li.dropdown-header + #{ _('This directory') } %li = link_to project_new_blob_path(@project, @id) do #{ _('New file') } @@ -60,6 +62,8 @@ #{ _('New directory') } %li.divider + %li.dropdown-header + #{ _('This repository') } %li = link_to new_project_branch_path(@project) do #{ _('New branch') } |