Merge pull request #4398 from xfalcox/fix-tags-for-crawlers
FIX: Tags on topic crawler view
This commit is contained in:
commit
80fc54a16c
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue