From 19bab5a9dccd157816c3faeab2dbac6abeaea038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 23 Jan 2021 01:08:16 +0100 Subject: [PATCH] Add related SDG and targets tags to polls --- app/assets/stylesheets/participation.scss | 2 +- app/views/polls/_poll_group.html.erb | 1 + app/views/polls/_poll_header.html.erb | 1 + spec/system/polls/polls_spec.rb | 26 +++++++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index e836c7883..9c014addc 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1832,7 +1832,7 @@ padding: 0 $line-height / 2 0 0; } - img { + .image-container img { height: 100%; max-width: none; position: absolute; diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb index 16da5efaa..bcc58aa28 100644 --- a/app/views/polls/_poll_group.html.erb +++ b/app/views/polls/_poll_group.html.erb @@ -52,6 +52,7 @@
  • <%= g.name %>
  • <% end %> + <%= render SDG::TagListComponent.new(poll, limit: 5, linkable: false) %>
    diff --git a/app/views/polls/_poll_header.html.erb b/app/views/polls/_poll_header.html.erb index 32008cb8e..71e9ae622 100644 --- a/app/views/polls/_poll_header.html.erb +++ b/app/views/polls/_poll_header.html.erb @@ -18,6 +18,7 @@ <% end %> <% end %> + <%= render SDG::TagListComponent.new(@poll, linkable: false) %>