diff options
author | Patrick Bajao <ebajao@gitlab.com> | 2019-04-02 08:59:42 +0800 |
---|---|---|
committer | Patrick Bajao <ebajao@gitlab.com> | 2019-04-02 22:07:16 +0800 |
commit | b64662d0afaa961e716988cbebec57a0810d12a2 (patch) | |
tree | c1cf3191ac032e1598f5ea12bb617f36cf4a0a7d /app/views | |
parent | a03fa93da22c5dfece9c411ad9733a0978dede09 (diff) | |
download | gitlab-ce-b64662d0afaa961e716988cbebec57a0810d12a2.tar.gz |
Switch positions of source and directory sections
Updated the documentation to match the updated order including
the screenshot.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/buttons/_download.html.haml | 24 |
1 files changed, 12 insertions, 12 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') |