Files
nairobi/app/components/sdg_management/header.rb
Javi Martín cb78a254f4 Extract method to provide a title for SDG pages
This way we'll avoid the duplication that can be found in the admin
section.
2020-12-02 12:38:03 +01:00

12 lines
189 B
Ruby

module SDGManagement::Header
extend ActiveSupport::Concern
def header
provide(:title) do
"#{t("sdg_management.header.title")} - #{title}"
end
tag.h2 title
end
end