diff options
-rw-r--r-- | app/views/projects/buttons/_download.html.haml | 24 | ||||
-rw-r--r-- | doc/user/project/repository/img/download_source_code.png | bin | 62871 -> 61467 bytes | |||
-rw-r--r-- | doc/user/project/repository/index.md | 10 |
3 files changed, 17 insertions, 17 deletions
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml index 64532b1bc3a..ebd4a7189ed 100644 --- a/app/views/projects/buttons/_download.html.haml +++ b/app/views/projects/buttons/_download.html.haml @@ -8,7 +8,19 @@ %span.sr-only= _('Select Archive Format') = sprite_icon("arrow-down") %ul.dropdown-menu.dropdown-menu-right{ role: 'menu' } + %li.dropdown-bold-header= _('Download source code') + %li.dropdown-menu-content + %ul + %li.inline-content + = link_to _('zip'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'zip'), rel: 'nofollow', download: '', class: 'btn btn-primary btn-xs' + %li.inline-content + = link_to _('tar.gz'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar.gz'), rel: 'nofollow', download: '', class: 'btn btn-xs' + %li.inline-content + = link_to _('tar.bz2'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar.bz2'), rel: 'nofollow', download: '', class: 'btn btn-xs' + %li.inline-content + = link_to _('tar'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar'), rel: 'nofollow', download: '', class: 'btn btn-xs' - if directory? + %li.separator %li.dropdown-bold-header= _('Download this directory') %li.dropdown-menu-content %ul @@ -20,18 +32,6 @@ = link_to _('tar.bz2'), project_archive_path(project, id: tree_join(ref, archive_prefix), path: @path, format: 'tar.bz2'), rel: 'nofollow', download: '', class: 'btn btn-xs' %li.inline-content = link_to _('tar'), project_archive_path(project, id: tree_join(ref, archive_prefix), path: @path, format: 'tar'), rel: 'nofollow', download: '', class: 'btn btn-xs' - %li.separator - %li.dropdown-bold-header= _('Download source code') - %li.dropdown-menu-content - %ul - %li.inline-content - = link_to _('zip'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'zip'), rel: 'nofollow', download: '', class: 'btn btn-primary btn-xs' - %li.inline-content - = link_to _('tar.gz'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar.gz'), rel: 'nofollow', download: '', class: 'btn btn-xs' - %li.inline-content - = link_to _('tar.bz2'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar.bz2'), rel: 'nofollow', download: '', class: 'btn btn-xs' - %li.inline-content - = link_to _('tar'), project_archive_path(project, id: tree_join(ref, archive_prefix), format: 'tar'), rel: 'nofollow', download: '', class: 'btn btn-xs' - if pipeline && pipeline.latest_builds_with_artifacts.any? %li.separator %li.dropdown-bold-header= _('Download artifacts') diff --git a/doc/user/project/repository/img/download_source_code.png b/doc/user/project/repository/img/download_source_code.png Binary files differindex 6c0c31af2ad..17f2cb4b3e8 100644 --- a/doc/user/project/repository/img/download_source_code.png +++ b/doc/user/project/repository/img/download_source_code.png diff --git a/doc/user/project/repository/index.md b/doc/user/project/repository/index.md index ffb1d77f67c..718566a539f 100644 --- a/doc/user/project/repository/index.md +++ b/doc/user/project/repository/index.md @@ -249,15 +249,15 @@ By clicking the download icon, a dropdown will open with links to download the f ![Download source code](img/download_source_code.png) +- **Source Code:** + This allows users to download the source code on branch they're currently + viewing. Available zip, tar, tar.gz and tar.bz2. - **Directory:** > [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/24704) in GitLab 11.10 Only shows up when viewing a sub-directory. This allows users to download - the specific directory they're currently viewing. Available in zip, tar, tar.gz - and tar.bz2. -- **Source Code:** - This allows users to download the source code on branch they're currently - viewing. Also available zip, tar, tar.gz and tar.bz2. + the specific directory they're currently viewing. Also available in zip, tar, + tar.gz and tar.bz2. - **Artifacts:** This allows users to download the artifacts of the latest CI build. |