##// END OF EJS Templates
Adds noindex,noarchive robots meta tag on form pages (#7582)....
Jean-Philippe Lang -
r5323:ffd0a9c72c24
parent child
Show More
@@ -901,6 +901,10 module ApplicationHelper
901 901 "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />"
902 902 end
903 903
904 def robot_exclusion_tag
905 '<meta name="robots" content="noindex,follow,noarchive" />'
906 end
907
904 908 # Returns true if arg is expected in the API response
905 909 def include_in_api_response?(arg)
906 910 unless @included_in_api_response
@@ -74,3 +74,6
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 %>
@@ -1,3 +1,6
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 %>
@@ -23,4 +23,5
23 23
24 24 <% content_for :header_tags do %>
25 25 <%= stylesheet_link_tag 'scm' %>
26 <%= robot_exclusion_tag %>
26 27 <% end %>
@@ -23,6 +23,7
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 %>
General Comments 0
You need to be logged in to leave comments. Login now