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
|
breadcrumb.push url: category.url, name: category.name
|
||||||
end
|
end
|
||||||
|
|
||||||
if (tags = topic.tags).present?
|
if SiteSetting.tagging_enabled && (tags = topic.tags).present?
|
||||||
tags.each do |tag|
|
tags.each do |tag|
|
||||||
url = "#{Discourse.base_url}/tags/#{tag.name}"
|
url = "#{Discourse.base_url}/tags/#{tag.name}"
|
||||||
breadcrumb << {url: url, name: tag.name}
|
breadcrumb << {url: url, name: tag.name}
|
||||||
|
|
|
@ -18,16 +18,6 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% 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" %>
|
<%= server_plugin_outlet "topic_header" %>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
Loading…
Reference in New Issue