Merge branch 'ticket/master/169-robot-exclusion-tag'

pull/351/head
Eric Davis 14 years ago
commit ecb29a600b
  1. 8
      app/helpers/application_helper.rb
  2. 3
      app/views/issue_moves/new.rhtml
  3. 3
      app/views/issues/edit.rhtml
  4. 1
      app/views/issues/new.rhtml
  5. 1
      app/views/wiki/edit.rhtml

@ -898,6 +898,14 @@ module ApplicationHelper
def favicon
"<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />"
end
# Add a HTML meta tag to control robots (web spiders)
#
# @param [optional, String] content the content of the ROBOTS tag.
# defaults to no index, follow, and no archive
def robot_exclusion_tag(content="NOINDEX,FOLLOW,NOARCHIVE")
"<meta name='ROBOTS' content='#{h(content)}' />"
end
# Returns true if arg is expected in the API response
def include_in_api_response?(arg)

@ -74,3 +74,6 @@
<%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
<% end %>
<% end %>
<% content_for :header_tags do %>
<%= robot_exclusion_tag %>
<% end %>

@ -1,3 +1,6 @@
<h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
<%= render :partial => 'edit' %>
<% content_for :header_tags do %>
<%= robot_exclusion_tag %>
<% end %>

@ -23,4 +23,5 @@
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<%= robot_exclusion_tag %>
<% end %>

@ -23,6 +23,7 @@
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<%= robot_exclusion_tag %>
<% end %>
<% html_title @page.pretty_title %>

Loading…
Cancel
Save