app/controllers/tramway/page/pages_controller.rb in tramway-page-1.5.3.1 vs app/controllers/tramway/page/pages_controller.rb in tramway-page-1.5.3.2
- old
+ new
@@ -8,9 +8,12 @@
@blocks = @page.blocks.published.active.map do |block|
if block.block_type.header_with_form? && block.form_url.present?
# FIXME: in future
@header_with_form = block.form_to_render.new(Tramway::Auth.authenticable_models.first.new, page: @page.id)
end
+ if block.block_type.in? [ :header, :header_with_form ]
+ @links = Tramway::Landing::BlockLinkDecorator.decorate @page.with_navbar_link.active
+ end
::Tramway::Landing::BlockDecorator.decorate block
end
end
end