]> source.dussan.org Git - redmine.git/commitdiff
Adds noindex,noarchive robots meta tag on form pages (#7582).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Apr 2011 19:22:44 +0000 (19:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Apr 2011 19:22:44 +0000 (19:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5443 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
app/views/issue_moves/new.rhtml
app/views/issues/edit.rhtml
app/views/issues/new.rhtml
app/views/wiki/edit.rhtml

index 8a41872df0b2f81e99374b8a1a214a8d5a031f95..9410e8dcfbc1944ce5df87a8767c2655e8d4b92c 100644 (file)
@@ -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)
index cd6044052c98c9254b8b1db9e94016faf73011a1..24d59aedc527ca6a887773ef0377f4d301260974 100644 (file)
@@ -74,3 +74,6 @@
        <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
 <% end %>
 <% end %>
+<% content_for :header_tags do %>
+       <%= robot_exclusion_tag %>
+<% end %>
index 97f26a205558e4d5c35a1246a8a43573c55ee960..f2c6024baaff9ff3c5f26ab2da3670a7b7774e4e 100644 (file)
@@ -1,3 +1,6 @@
 <h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
 
 <%= render :partial => 'edit' %>
+<% content_for :header_tags do %>
+    <%= robot_exclusion_tag %>
+<% end %>
index 13992382f9bfd9cb5980662d3fef3a81d0d6a54f..867590fa290d0a7a3be6839dbdaf5752a1f4a7cf 100644 (file)
@@ -23,4 +23,5 @@
 
 <% content_for :header_tags do %>
     <%= stylesheet_link_tag 'scm' %>
+    <%= robot_exclusion_tag %>
 <% end %>
index 2615075e26bd0250592798a9715ac57ead780896..5f47c3f8cc0e052b18b75946db399d9a249d20a2 100644 (file)
@@ -23,6 +23,7 @@
 
 <% content_for :header_tags do %>
   <%= stylesheet_link_tag 'scm' %>
+  <%= robot_exclusion_tag %>
 <% end %>
 
 <% html_title @page.pretty_title %>