Merge pull request #4398 from xfalcox/fix-tags-for-crawlers

FIX: Tags on topic crawler view
This commit is contained in:
Sam 2016-10-11 11:43:40 +11:00 committed by GitHub
commit 80fc54a16c
2 changed files with 1 additions and 11 deletions

View File

@ -15,7 +15,7 @@ module TopicsHelper
breadcrumb.push url: category.url, name: category.name
end
if (tags = topic.tags).present?
if SiteSetting.tagging_enabled && (tags = topic.tags).present?
tags.each do |tag|
url = "#{Discourse.base_url}/tags/#{tag.name}"
breadcrumb << {url: url, name: tag.name}

View File

@ -18,16 +18,6 @@
</div>
<% end %>
<%- if SiteSetting.tagging_enabled && @topic_view.topic.tags.present? %>
<div class='tags'>
<%= t 'js.tagging.tags' %>:
<%- @topic_view.topic.tags.each do |t| %>
<%= t %>
<%- end %>
</div>
<% end %>
<%= server_plugin_outlet "topic_header" %>
<hr>