mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 14:01:53 +08:00
FIX: Tags on topic crawler view
- Remove tag object id - Remove duplicate tag list - Don't display tags when tagging is disabled
This commit is contained in:
parent
4e76525d25
commit
16f04d96d4
@ -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…
x
Reference in New Issue
Block a user