summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-12-06 00:40:39 +0000
committerGo MAEDA <maeda@farend.jp>2018-12-06 00:40:39 +0000
commite6e02e5e45e989f56329b920aa277a5c387a6f90 (patch)
tree31971ea365b9c7b490e6801387dc4128f2c4c653 /app/views
parent8a0a3bc8edacc0e265f9bb86d775da014fa767e9 (diff)
downloadredmine-e6e02e5e45e989f56329b920aa277a5c387a6f90.tar.gz
redmine-e6e02e5e45e989f56329b920aa277a5c387a6f90.zip
Discourage search engines from indexing old versions of wiki pages (#29503).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17690 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/wiki/show.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index 5fffba259..93a358346 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -99,4 +99,8 @@
<%= render :partial => 'sidebar' %>
<% end %>
+<% content_for :header_tags do %>
+ <%= robot_exclusion_tag unless @content.current_version? %>
+<% end %>
+
<% html_title @page.pretty_title %>