Commit b64662d0 authored by Patrick Bajao's avatar Patrick Bajao

Switch positions of source and directory sections

Updated the documentation to match the updated order including
the screenshot.
parent a03fa93d
...@@ -8,30 +8,30 @@ ...@@ -8,30 +8,30 @@
%span.sr-only= _('Select Archive Format') %span.sr-only= _('Select Archive Format')
= sprite_icon("arrow-down") = sprite_icon("arrow-down")
%ul.dropdown-menu.dropdown-menu-right{ role: 'menu' } %ul.dropdown-menu.dropdown-menu-right{ role: 'menu' }
- if directory? %li.dropdown-bold-header= _('Download source code')
%li.dropdown-bold-header= _('Download this directory')
%li.dropdown-menu-content %li.dropdown-menu-content
%ul %ul
%li.inline-content %li.inline-content
= link_to _('zip'), project_archive_path(project, id: tree_join(ref, archive_prefix), path: @path, format: 'zip'), rel: 'nofollow', download: '', class: 'btn btn-primary btn-xs' = 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 %li.inline-content
= link_to _('tar.gz'), project_archive_path(project, id: tree_join(ref, archive_prefix), path: @path, format: 'tar.gz'), rel: 'nofollow', download: '', class: 'btn btn-xs' = 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 %li.inline-content
= 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' = 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 %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' = 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.separator
%li.dropdown-bold-header= _('Download source code') %li.dropdown-bold-header= _('Download this directory')
%li.dropdown-menu-content %li.dropdown-menu-content
%ul %ul
%li.inline-content %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' = link_to _('zip'), project_archive_path(project, id: tree_join(ref, archive_prefix), path: @path, format: 'zip'), rel: 'nofollow', download: '', class: 'btn btn-primary btn-xs'
%li.inline-content %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' = link_to _('tar.gz'), project_archive_path(project, id: tree_join(ref, archive_prefix), path: @path, format: 'tar.gz'), rel: 'nofollow', download: '', class: 'btn btn-xs'
%li.inline-content %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' = 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 %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' = link_to _('tar'), project_archive_path(project, id: tree_join(ref, archive_prefix), path: @path, format: 'tar'), rel: 'nofollow', download: '', class: 'btn btn-xs'
- if pipeline && pipeline.latest_builds_with_artifacts.any? - if pipeline && pipeline.latest_builds_with_artifacts.any?
%li.separator %li.separator
%li.dropdown-bold-header= _('Download artifacts') %li.dropdown-bold-header= _('Download artifacts')
......
...@@ -249,15 +249,15 @@ By clicking the download icon, a dropdown will open with links to download the f ...@@ -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) ![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:** - **Directory:**
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/24704) in GitLab 11.10 > [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 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 the specific directory they're currently viewing. Also available in zip, tar,
and tar.bz2. 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.
- **Artifacts:** - **Artifacts:**
This allows users to download the artifacts of the latest CI build. This allows users to download the artifacts of the latest CI build.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment