diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-16 22:45:22 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-10-07 04:22:55 -0700 |
commit | 0ab6ca93aadaf08f65f36e7fbdb5b837bac6e160 (patch) | |
tree | b20c01f8a37413e401873e5fd1be5e07865b93ac /config | |
parent | 0611a18964a998b6edc81ef9b469f9f70430e542 (diff) | |
download | gitlab-ce-0ab6ca93aadaf08f65f36e7fbdb5b837bac6e160.tar.gz |
Add directory feature button
Change "+" icon under "Files" section to have three options:
* Create file
* Upload file
* New directory
Upload file is no longer accessible from the "Create file" page.
Users can now select a target branch in upload file as well.
Closes #2799: Fixes a bug where file modes were overwritten after a commit
Closes https://github.com/gitlabhq/gitlabhq/issues/8253: Existing files
can no longer be overwritten in the "Create file" section.
Closes #2557
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index ccce40589e7..035b996dd7a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -464,6 +464,15 @@ Gitlab::Application.routes.draw do end scope do + post( + '/create_dir/*id', + to: 'tree#create_dir', + constraints: { id: /.+/ }, + as: 'create_dir' + ) + end + + scope do get( '/blame/*id', to: 'blame#show', |