From fa14a267a61ef6d32a0c2e2c8bfc36029cedeff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 23 Jan 2021 16:05:28 +0100 Subject: [PATCH] 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. --- app/views/shared/_tags.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/_tags.html.erb b/app/views/shared/_tags.html.erb index a1e42ed14..103455017 100644 --- a/app/views/shared/_tags.html.erb +++ b/app/views/shared/_tags.html.erb @@ -1,5 +1,7 @@ <%- limit ||= nil %> +<%= render SDG::TagListComponent.new(taggable, limit: limit) %> + <% if taggable.tags.any? %> <% end %> - -<%= render SDG::TagListComponent.new(taggable, limit: limit) %>