related tags: fix AI tags not showing rating tags.
* Fix the suggested tags list in the related tags box not showing rating tags. * Fix the suggested tags list showing tags that have been aliased to another tag.
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
</h3>
|
||||
|
||||
<ul class="tag-list simple-tag-list">
|
||||
<% ai_tags.each do |t| %>
|
||||
<% ai_tags.each do |ai_tag| %>
|
||||
<li class="flex items-center space-x-1">
|
||||
<input type="checkbox" tabindex="-1">
|
||||
<span>
|
||||
<% t = ai_tag.is_aliased? ? ai_tag.aliased_tag : ai_tag.tag %>
|
||||
|
||||
<%= link_to t.pretty_name, posts_path(tags: t.name), class: "search-tag tag-type-#{t.category}", "data-tag-name": t.name %>
|
||||
<%= tag.span "#{t.score}%", class: "text-muted text-xs" %>
|
||||
<%= tag.span "#{ai_tag.score}%", class: "text-muted text-xs" %>
|
||||
</span>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user