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 | 3 | - split_button = split_button || false |
4 | 4 | - if split_button == true |
5 | 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 | 7 | %i.icon-download-alt |
8 | 8 | %span Download zip |
9 | 9 | %a.btn.dropdown-toggle{ 'data-toggle' => 'dropdown' } |
... | ... | @@ -12,26 +12,26 @@ |
12 | 12 | Select Archive Format |
13 | 13 | %ul.dropdown-menu{ role: 'menu' } |
14 | 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 | 16 | %i.icon-download-alt |
17 | 17 | %span Download zip |
18 | 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 | 20 | %i.icon-download-alt |
21 | 21 | %span Download tar.gz |
22 | 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 | 24 | %i.icon-download-alt |
25 | 25 | %span Download tar.bz2 |
26 | 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 | 28 | %i.icon-download-alt |
29 | 29 | %span Download tar |
30 | 30 | - else |
31 | 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 | 33 | %i.icon-download-alt |
34 | 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 | 36 | %i.icon-download-alt |
37 | 37 | %span tar.gz |
38 | 38 | \ No newline at end of file | ... | ... |