Ver código fonte

Adds noindex,noarchive robots meta tag on form pages (#7582).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5443 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.2.0
Jean-Philippe Lang 13 anos atrás
pai
commit
ffd0a9c72c

+ 4
- 0
app/helpers/application_helper.rb Ver arquivo

@@ -900,6 +900,10 @@ module ApplicationHelper
def favicon
"<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />"
end

def robot_exclusion_tag
'<meta name="robots" content="noindex,follow,noarchive" />'
end
# Returns true if arg is expected in the API response
def include_in_api_response?(arg)

+ 3
- 0
app/views/issue_moves/new.rhtml Ver arquivo

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

+ 3
- 0
app/views/issues/edit.rhtml Ver arquivo

@@ -1,3 +1,6 @@
<h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>

<%= render :partial => 'edit' %>
<% content_for :header_tags do %>
<%= robot_exclusion_tag %>
<% end %>

+ 1
- 0
app/views/issues/new.rhtml Ver arquivo

@@ -23,4 +23,5 @@

<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<%= robot_exclusion_tag %>
<% end %>

+ 1
- 0
app/views/wiki/edit.rhtml Ver arquivo

@@ -23,6 +23,7 @@

<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<%= robot_exclusion_tag %>
<% end %>

<% html_title @page.pretty_title %>

Carregando…
Cancelar
Salvar