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:
decabeza
2020-05-04 12:44:18 +02:00
committed by Javi Martín
parent 3cd2529791
commit 4a9aae9806
12 changed files with 58 additions and 10 deletions

View File

@@ -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