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

Actually link tags to new things

parent 94faa4fe
No related merge requests found
......@@ -33,7 +33,7 @@
<% required = required_ids&.include?(tag.id) ? 'is-filled' : '' %>
<% topic = topic_ids&.include?(tag.id) ? 'is-outlined' : '' %>
<% moderator = moderator_ids.include?(tag.id) ? 'is-red is-outlined' : '' %>
<%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name),
<%= link_to tag.name, tag_path(id: post.category_id, tag_id: tag.id),
class: "badge is-tag #{required} #{topic} #{moderator}" %>
<% end %>
</div>
......
......@@ -122,7 +122,7 @@
<% required = required_ids&.include?(tag.id) ? 'is-filled' : '' %>
<% topic = topic_ids&.include?(tag.id) ? 'is-outlined' : '' %>
<% moderator = moderator_ids.include?(tag.id) ? 'is-red is-outlined' : '' %>
<%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name),
<%= link_to tag.name, tag_path(id: post.category_id, tag_id: tag.id),
class: "badge is-tag #{required} #{topic} #{moderator}" %>
<% end %>
</div>
......
......@@ -45,7 +45,7 @@
<% required = required_ids&.include?(tag.id) ? 'is-filled' : '' %>
<% topic = topic_ids&.include?(tag.id) ? 'is-outlined' : '' %>
<% moderator = moderator_ids.include?(tag.id) ? 'is-red is-outlined' : '' %>
<%= link_to tag.name, questions_tagged_path(tag_set: tag_set.id, tag: tag.name),
<%= link_to tag.name, tag_path(id: post.category_id, tag_id: tag.id),
class: "badge is-tag #{required} #{topic} #{moderator}" %>
<% end %>
<% end %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment