diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-01-11 17:42:41 +0300 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2018-01-19 20:15:48 +0300 |
commit | 0b60e13ae1fa28f18c753fc0fedb92dd404791db (patch) | |
tree | 30c53e621bcb86eec61be3c61430adf8d3b59183 /app | |
parent | 604c9133a75b235e3b537ad96dcf92ed6949ed65 (diff) |
Add section headers to plus button dropdown
Diffstat (limited to 'app')
-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') } |