diff options
author | Drew Blessing <drew@gitlab.com> | 2015-12-17 23:50:00 +0300 |
---|---|---|
committer | Drew Blessing <drew@gitlab.com> | 2015-12-17 23:50:00 +0300 |
commit | 50ef67617c9178d9c2d246d6c23e9d45fe141436 (patch) | |
tree | fdccc92c197e49f2a84a2d1083bf56a156e9a786 | |
parent | b2c593dac513c0e12153e0aa786759c4ebc996bc (diff) |
Add branch and tag operation to tree dropdown
-rw-r--r-- | app/views/projects/tree/_tree_header.html.haml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/views/projects/tree/_tree_header.html.haml b/app/views/projects/tree/_tree_header.html.haml index cefe33e581f..89b072cea92 100644 --- a/app/views/projects/tree/_tree_header.html.haml +++ b/app/views/projects/tree/_tree_header.html.haml @@ -20,16 +20,24 @@ %li = link_to namespace_project_new_blob_path(@project.namespace, @project, @id), title: 'Create file', id: 'new-file-link' do = icon('pencil fw') - Create file + New file %li = link_to '#modal-upload-blob', { 'data-target' => '#modal-upload-blob', 'data-toggle' => 'modal'} do = icon('file fw') Upload file - %li.divider %li = link_to '#modal-create-new-dir', { 'data-target' => '#modal-create-new-dir', 'data-toggle' => 'modal'} do = icon('folder fw') New directory + %li.divider + %li + = link_to new_namespace_project_branch_path(@project.namespace, @project) do + = icon('code-fork fw') + New branch + %li + = link_to new_namespace_project_tag_path(@project.namespace, @project) do + = icon('tags fw') + New tag - elsif !on_top_of_branch? %li %span.btn.btn-sm.add-to-tree.disabled.has_tooltip{title: "You can only add files when you are on a branch.", data: {container: 'body'}} |