Commit 96efdfade1f1601da201349faf6f085006ef2928
Exists in
spb-stable
and in
3 other branches
Merge pull request #6341 from Cynddl/feature/nofollow
Fix issue with robots constantly asking for projects archives
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
app/views/projects/repositories/_download_archive.html.haml
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | - split_button = split_button || false | 3 | - split_button = split_button || false |
| 4 | - if split_button == true | 4 | - if split_button == true |
| 5 | %span.btn-group{class: btn_class} | 5 | %span.btn-group{class: btn_class} |
| 6 | - = link_to archive_project_repository_path(@project, ref: ref, format: 'zip'), class: 'btn' do | 6 | + = link_to archive_project_repository_path(@project, ref: ref, format: 'zip'), class: 'btn', rel: 'nofollow' do |
| 7 | %i.icon-download-alt | 7 | %i.icon-download-alt |
| 8 | %span Download zip | 8 | %span Download zip |
| 9 | %a.btn.dropdown-toggle{ 'data-toggle' => 'dropdown' } | 9 | %a.btn.dropdown-toggle{ 'data-toggle' => 'dropdown' } |
| @@ -12,26 +12,26 @@ | @@ -12,26 +12,26 @@ | ||
| 12 | Select Archive Format | 12 | Select Archive Format |
| 13 | %ul.dropdown-menu{ role: 'menu' } | 13 | %ul.dropdown-menu{ role: 'menu' } |
| 14 | %li | 14 | %li |
| 15 | - = link_to archive_project_repository_path(@project, ref: ref, format: 'zip') do | 15 | + = link_to archive_project_repository_path(@project, ref: ref, format: 'zip'), rel: 'nofollow' do |
| 16 | %i.icon-download-alt | 16 | %i.icon-download-alt |
| 17 | %span Download zip | 17 | %span Download zip |
| 18 | %li | 18 | %li |
| 19 | - = link_to archive_project_repository_path(@project, ref: ref, format: 'tar.gz') do | 19 | + = link_to archive_project_repository_path(@project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do |
| 20 | %i.icon-download-alt | 20 | %i.icon-download-alt |
| 21 | %span Download tar.gz | 21 | %span Download tar.gz |
| 22 | %li | 22 | %li |
| 23 | - = link_to archive_project_repository_path(@project, ref: ref, format: 'tar.bz2') do | 23 | + = link_to archive_project_repository_path(@project, ref: ref, format: 'tar.bz2'), rel: 'nofollow' do |
| 24 | %i.icon-download-alt | 24 | %i.icon-download-alt |
| 25 | %span Download tar.bz2 | 25 | %span Download tar.bz2 |
| 26 | %li | 26 | %li |
| 27 | - = link_to archive_project_repository_path(@project, ref: ref, format: 'tar') do | 27 | + = link_to archive_project_repository_path(@project, ref: ref, format: 'tar'), rel: 'nofollow' do |
| 28 | %i.icon-download-alt | 28 | %i.icon-download-alt |
| 29 | %span Download tar | 29 | %span Download tar |
| 30 | - else | 30 | - else |
| 31 | %span.btn-group{class: btn_class} | 31 | %span.btn-group{class: btn_class} |
| 32 | - = link_to archive_project_repository_path(@project, ref: ref, format: 'zip'), class: 'btn' do | 32 | + = link_to archive_project_repository_path(@project, ref: ref, format: 'zip'), class: 'btn', rel: 'nofollow' do |
| 33 | %i.icon-download-alt | 33 | %i.icon-download-alt |
| 34 | %span zip | 34 | %span zip |
| 35 | - = link_to archive_project_repository_path(@project, ref: ref, format: 'tar.gz'), class: 'btn' do | 35 | + = link_to archive_project_repository_path(@project, ref: ref, format: 'tar.gz'), class: 'btn', rel: 'nofollow' do |
| 36 | %i.icon-download-alt | 36 | %i.icon-download-alt |
| 37 | %span tar.gz | 37 | %span tar.gz |
| 38 | \ No newline at end of file | 38 | \ No newline at end of file |