add rel=nofollow in more places
This commit is contained in:
@@ -67,7 +67,7 @@ module PostsHelper
|
||||
end
|
||||
|
||||
if CurrentUser.is_builder? && !source_search.blank?
|
||||
source_link + " ".html_safe + link_to("»".html_safe, posts_path(:tags => source_search))
|
||||
source_link + " ".html_safe + link_to("»".html_safe, posts_path(:tags => source_search), :rel => "nofollow")
|
||||
else
|
||||
source_link
|
||||
end
|
||||
|
||||
@@ -120,7 +120,7 @@ class DText
|
||||
def self.parse_post_links(str)
|
||||
str.gsub(/\{\{([^\}]+)\}\}/) do
|
||||
tags = CGI.unescapeHTML($1)
|
||||
%{<a href="/posts?tags=#{u(tags)}">#{h(tags)}</a>}
|
||||
%{<a rel="nofollow" href="/posts?tags=#{u(tags)}">#{h(tags)}</a>}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -105,8 +105,8 @@ private
|
||||
end
|
||||
|
||||
if CurrentUser.user.is_gold? && current_query.present?
|
||||
html << %{<a href="/posts?tags=#{u(current_query)}+#{u(tag)}" class="search-inc-tag">+</a> }
|
||||
html << %{<a href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">–</a> }
|
||||
html << %{<a rel="nofollow" href="/posts?tags=#{u(current_query)}+#{u(tag)}" class="search-inc-tag">+</a> }
|
||||
html << %{<a rel="nofollow" href="/posts?tags=#{u(current_query)}+-#{u(tag)}" class="search-exl-tag">–</a> }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<section id="related-box">
|
||||
<h1>Related</h1>
|
||||
<ul id="related-list">
|
||||
<li><%= link_to "Deleted posts", posts_path(:tags => "#{params[:tags]} status:deleted") %></li>
|
||||
<li><%= link_to "Deleted posts", posts_path(:tags => "#{params[:tags]} status:deleted"), :rel => "nofollow" %></li>
|
||||
|
||||
<% if @post_set.is_tag_subscription? %>
|
||||
<li><%= link_to "Edit subscriptions", tag_subscriptions_path %></li>
|
||||
<% end %>
|
||||
|
||||
<li><%= link_to "Random post", random_posts_path(:tags => params[:tags]), :id => "random-post" %></li>
|
||||
<li><%= link_to "Random post", random_posts_path(:tags => params[:tags]), :id => "random-post", :rel => "nofollow" %></li>
|
||||
|
||||
<li><%= link_to "Mobile version", mobile_posts_path(:tags => params[:tags]) %></li>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<ul>
|
||||
<li>ID: <%= post.id %></li>
|
||||
<li>Uploader: <%= link_to_user(post.uploader) + " ".html_safe + link_to("»".html_safe, posts_path(:tags => "user:#{post.uploader.name}")) %></li>
|
||||
<li>Date: <%= link_to time_ago_in_words_tagged(post.created_at), posts_path(:tags => "date:#{post.created_at.to_date}") %></li>
|
||||
<li>Uploader: <%= link_to_user(post.uploader) + " ".html_safe + link_to("»".html_safe, posts_path(:tags => "user:#{post.uploader.name}"), :rel => "nofollow") %></li>
|
||||
<li>Date: <%= link_to time_ago_in_words_tagged(post.created_at), posts_path(:tags => "date:#{post.created_at.to_date}"), :rel => "nofollow" %></li>
|
||||
<% if post.approver %>
|
||||
<li>Approver: <%= link_to_user(post.approver) %></li>
|
||||
<% end %>
|
||||
|
||||
@@ -31,6 +31,7 @@ Disallow: /post_flags
|
||||
Disallow: /post_sets
|
||||
Disallow: /post_versions
|
||||
Disallow: /post_votes
|
||||
Disallow: /posts.atom
|
||||
Disallow: /posts/show_seq
|
||||
Disallow: /posts/random
|
||||
Disallow: /posts/copy_notes
|
||||
|
||||
Reference in New Issue
Block a user