Render participation feeds per SDG
This commit is contained in:
@@ -8,4 +8,6 @@
|
||||
<h1><%= goal.title %></h1>
|
||||
</header>
|
||||
</article>
|
||||
|
||||
<%= render Widgets::Feeds::ParticipationComponent.new(feeds) %>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user