Render participation feeds per SDG

This commit is contained in:
Javi Martín
2020-12-20 14:43:04 +01:00
parent fae52274a4
commit 2fcfa7ebd7
6 changed files with 44 additions and 3 deletions

View File

@@ -8,4 +8,6 @@
<h1><%= goal.title %></h1>
</header>
</article>
<%= render Widgets::Feeds::ParticipationComponent.new(feeds) %>
</div>

View File

@@ -5,4 +5,8 @@ class SDG::Goals::ShowComponent < ApplicationComponent
def initialize(goal)
@goal = goal
end
def feeds
SDG::Widget::Feed.for_goal(goal)
end
end