Render related SDGs before tags

When a proposal had geozones, it was a bit strange to have a list of
tags, then a list of SDGs, and then another list of tags. So we're
changing the order a bit.
This commit is contained in:
Javi Martín
2021-01-23 16:05:28 +01:00
parent 1fefc910d6
commit fa14a267a6

View File

@@ -1,5 +1,7 @@
<%- limit ||= nil %>
<%= render SDG::TagListComponent.new(taggable, limit: limit) %>
<% if taggable.tags.any? %>
<ul id="tags_<%= dom_id(taggable) %>" class="tags">
<% taggable.tag_list_with_limit(limit).each do |tag| %>
@@ -16,5 +18,3 @@
<% end %>
</ul>
<% end %>
<%= render SDG::TagListComponent.new(taggable, limit: limit) %>