|
1 |
| -- if @repository.is_a?(Repository::Xitolite) && RedmineGitHosting::Config.download_revision_enabled? |
2 |
| - - if @repository.downloadable? |
3 |
| - |
4 |
| - %div{ style: 'clear: both;' } |
5 |
| - |
6 |
| - #git_hosting_download_buttons |
7 |
| - %ul |
8 |
| - %li |
9 |
| - = link_to label_with_icon(l(:label_download_format, :archive_format => '.tar'), 'fa-download'), |
10 |
| - download_git_revision_repository_path(@repository, :rev => @rev, :download_format => 'tar'), |
11 |
| - :class => 'button' |
12 |
| - |
13 |
| - %li |
14 |
| - = link_to label_with_icon(l(:label_download_format, :archive_format => '.tar.gz'), 'fa-download'), |
15 |
| - download_git_revision_repository_path(@repository, :rev => @rev, :download_format => 'tar.gz'), |
16 |
| - :class => 'button' |
17 |
| - |
18 |
| - %li |
19 |
| - = link_to label_with_icon(l(:label_download_format, :archive_format => '.zip'), 'fa-download'), |
20 |
| - download_git_revision_repository_path(@repository, :rev => @rev, :download_format => 'zip'), |
21 |
| - :class => 'button' |
22 |
| - |
23 |
| - - content_for :header_tags do |
24 |
| - = bootstrap_load_module(:font_awesome) |
| 1 | +- if repository.downloadable? |
| 2 | + - content_for :header_tags do |
| 3 | + = bootstrap_load_module(:font_awesome) |
| 4 | + |
| 5 | + = label_with_icon(l(:label_download_format), 'fa-download') |
| 6 | + = select_tag :download, options_for_select(available_download_format(repository, @rev)), |
| 7 | + prompt: l(:label_download_select_format), |
| 8 | + onchange: "if (this.value != '') { window.location = this.value; }" |
0 commit comments