diff options
author | Kia Mei Somabes <kssomabes@up.edu.ph> | 2018-07-13 07:41:24 +0300 |
---|---|---|
committer | Patrick Bajao <ebajao@gitlab.com> | 2019-04-02 17:06:56 +0300 |
commit | e028276d34571cd5128021ab5daf3088eb538be2 (patch) | |
tree | b77366284ce8555deb5e2f92b39378c0f996eebf /app/views/projects/buttons | |
parent | 8b9da458ec31d053da0a26cf7b23ecf2f8baa8a6 (diff) |
Add download directory in menu
Add subdirectory params for RepositoriesController#archive
Diffstat (limited to 'app/views/projects/buttons')
-rw-r--r-- | app/views/projects/buttons/_download.html.haml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml index 4eb53faa6ff..7d22a4044e4 100644 --- a/app/views/projects/buttons/_download.html.haml +++ b/app/views/projects/buttons/_download.html.haml @@ -8,8 +8,14 @@ %span.sr-only= _('Select Archive Format') = sprite_icon("arrow-down") %ul.dropdown-menu.dropdown-menu-right{ role: 'menu' } + - if is_directory + %li.dropdown-header + #{ _('Directory') } + %li + = link_to project_archive_path(project, subdirectory: get_directory_path, id: tree_join(ref, archive_prefix), format: 'zip'), rel: 'nofollow', download: '' do + %span= _('Download zip') %li.dropdown-header - #{ _('Source code') } + #{ _('Repository') } %li = link_to project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'zip'), rel: 'nofollow', download: '' do %span= _('Download zip') |