Add groups index page
When render the investment list component with the link "see all investments", now we redirect to groups index page when a budget has multiple headings.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module Header
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
def header(&block)
|
||||
def header(before: nil, &block)
|
||||
provide(:title) do
|
||||
[
|
||||
t("#{namespace}.header.title", default: ""),
|
||||
@@ -17,11 +17,7 @@ module Header
|
||||
end
|
||||
|
||||
tag.header do
|
||||
if block_given?
|
||||
content_tag(heading_tag, title) + capture(&block)
|
||||
else
|
||||
content_tag(heading_tag, title)
|
||||
end
|
||||
safe_join([before, content_tag(heading_tag, title), (capture(&block) if block_given?)].compact)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user