ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

robot_exclusion.patch

Yuki Sonoda, 2011-02-10 08:01 am

Download (2 kB)

 
b/app/helpers/application_helper.rb
898 898
  def favicon
899 899
    "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />"
900 900
  end
901

  
902
  def robot_exclusion_tag
903
    '<meta name="ROBOTS" content="NOINDEX,FOLLOW,NOARCHIVE" />'
904
  end
901 905
  
902 906
  # Returns true if arg is expected in the API response
903 907
  def include_in_api_response?(arg)
b/app/views/issue_moves/new.rhtml
74 74
	<%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
75 75
<% end %>
76 76
<% end %>
77
<% content_for :header_tags do %>
78
	<%= robot_exclusion_tag %>
79
<% end %>
b/app/views/issues/edit.rhtml
1 1
<h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
2 2

  
3 3
<%= render :partial => 'edit' %>
4
<% content_for :header_tags do %>
5
    <%= robot_exclusion_tag %>
6
<% end %>
b/app/views/issues/new.rhtml
23 23

  
24 24
<% content_for :header_tags do %>
25 25
    <%= stylesheet_link_tag 'scm' %>
26
    <%= robot_exclusion_tag %>
26 27
<% end %>
b/app/views/wiki/edit.rhtml
23 23

  
24 24
<% content_for :header_tags do %>
25 25
  <%= stylesheet_link_tag 'scm' %>
26
  <%= robot_exclusion_tag %>
26 27
<% end %>
27 28

  
28 29
<% html_title @page.pretty_title %>