diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-02 15:36:04 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-02 15:36:04 +0100 |
commit | 72a4251a9f1c79046edb064b7b9975e2e7f200e6 (patch) | |
tree | 41caef998ade56488df2dba98ecece4c21520684 /app | |
parent | a9f02300c885df3b7f7cad6d79e161b9547e8723 (diff) | |
download | gitlab-ce-new-file-link.tar.gz |
Add 'New file' link to dropdown on project pagenew-file-link
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/buttons/_dropdown.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/buttons/_dropdown.html.haml b/app/views/projects/buttons/_dropdown.html.haml index 4580c912692..bed2b16249e 100644 --- a/app/views/projects/buttons/_dropdown.html.haml +++ b/app/views/projects/buttons/_dropdown.html.haml @@ -21,6 +21,10 @@ - if can?(current_user, :push_code, @project) %li.divider %li + = link_to namespace_project_new_blob_path(@project.namespace, @project, @project.default_branch || 'master'), title: 'New file' do + = icon('file fw') + New file + %li = link_to new_namespace_project_branch_path(@project.namespace, @project) do = icon('code-fork fw') New branch |