Skip to content
Snippets Groups Projects
Commit fdfe5073 authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Update suggested edit views for updated tags helper

parent 2b24a218
Branches
Tags
No related merge requests found
......@@ -74,8 +74,9 @@
<% tag_set = post.tag_set %>
<% required_ids = post.category&.required_tag_ids %>
<% topic_ids = post.category&.topic_tag_ids %>
<% moderator_ids = post.category&.moderator_tag_ids %>
<div class="diff-old is-changed">
<% category_sort_tags(post.tags, required_ids, topic_ids).each do |tag| %>
<% category_sort_tags(post.tags, required_ids, topic_ids, moderator_ids).each do |tag| %>
<% required = required_ids&.include? tag.id %>
<% topic = topic_ids&.include? tag.id %>
<%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name),
......@@ -83,7 +84,7 @@
<% end %>
</div>
<div class="diff-new is-changed">
<% category_sort_tags(@edit.tags, required_ids, topic_ids).each do |tag| %>
<% category_sort_tags(@edit.tags, required_ids, topic_ids, moderator_ids).each do |tag| %>
<% required = required_ids&.include? tag.id %>
<% topic = topic_ids&.include? tag.id %>
<%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment