Add basic header to SDG goals view
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<% provide(:title) { goal.title } %>
|
||||
|
||||
<div class="sdg-goal-show">
|
||||
<%= back_link_to sdg_goals_path %>
|
||||
|
||||
<article class="sdg-goal sdg-goal-<%= goal.code %>">
|
||||
<header>
|
||||
<h1><%= goal.title %></h1>
|
||||
</header>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class SDG::Goals::ShowComponent < ApplicationComponent
|
||||
attr_reader :goal
|
||||
delegate :back_link_to, to: :helpers
|
||||
|
||||
def initialize(goal)
|
||||
@goal = goal
|
||||
|
||||
Reference in New Issue
Block a user