##// END OF EJS Templates
Adds noindex,noarchive robots meta tag on form pages (#7582)....
Jean-Philippe Lang -
r5323:ffd0a9c72c24
parent child
Show More
@@ -900,6 +900,10 module ApplicationHelper
900 def favicon
900 def favicon
901 "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />"
901 "<link rel='shortcut icon' href='#{image_path('/favicon.ico')}' />"
902 end
902 end
903
904 def robot_exclusion_tag
905 '<meta name="robots" content="noindex,follow,noarchive" />'
906 end
903
907
904 # Returns true if arg is expected in the API response
908 # Returns true if arg is expected in the API response
905 def include_in_api_response?(arg)
909 def include_in_api_response?(arg)
@@ -74,3 +74,6
74 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
74 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
75 <% end %>
75 <% end %>
76 <% end %>
76 <% end %>
77 <% content_for :header_tags do %>
78 <%= robot_exclusion_tag %>
79 <% end %>
@@ -1,3 +1,6
1 <h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
1 <h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
2
2
3 <%= render :partial => 'edit' %>
3 <%= render :partial => 'edit' %>
4 <% content_for :header_tags do %>
5 <%= robot_exclusion_tag %>
6 <% end %>
@@ -23,4 +23,5
23
23
24 <% content_for :header_tags do %>
24 <% content_for :header_tags do %>
25 <%= stylesheet_link_tag 'scm' %>
25 <%= stylesheet_link_tag 'scm' %>
26 <%= robot_exclusion_tag %>
26 <% end %>
27 <% end %>
@@ -23,6 +23,7
23
23
24 <% content_for :header_tags do %>
24 <% content_for :header_tags do %>
25 <%= stylesheet_link_tag 'scm' %>
25 <%= stylesheet_link_tag 'scm' %>
26 <%= robot_exclusion_tag %>
26 <% end %>
27 <% end %>
27
28
28 <% html_title @page.pretty_title %>
29 <% html_title @page.pretty_title %>
General Comments 0
You need to be logged in to leave comments. Login now