Defect #27865 ยป robots.diff
app/views/welcome/robots.html.erb | ||
---|---|---|
1 | 1 |
User-agent: * |
2 | 2 |
<% @projects.each do |p| -%> |
3 |
Disallow: /projects/<%= p.to_param %>/repository
|
|
4 |
Disallow: /projects/<%= p.to_param %>/issues
|
|
5 |
Disallow: /projects/<%= p.to_param %>/activity
|
|
3 |
Disallow: <%= url_for(:controller => 'repositories', :action => :show, :id => p) %>
|
|
4 |
Disallow: <%= url_for(project_issues_path(:project_id => p)) %>
|
|
5 |
Disallow: <%= url_for(project_activity_path(:id => p)) %>
|
|
6 | 6 |
<% end -%> |
7 |
Disallow: /issues/gantt |
|
8 |
Disallow: /issues/calendar |
|
9 |
Disallow: /activity |
|
10 |
Disallow: /search |
|
7 |
Disallow: <%= url_for(issues_gantt_path) %> |
|
8 |
Disallow: <%= url_for(issues_calendar_path) %> |
|
9 |
Disallow: <%= url_for(activity_path) %> |
|
10 |
Disallow: <%= url_for(search_path) %> |