Module: Decidim::RedesignLayout

Extended by:
Included in:
ApplicationController, Conferences::ApplicationController
Defined in:


This concern contains the logic related with switching layouts for the new design in controllers. Include this concern in the controllers with new layouts

To enable/disable new designs on a controller put in the controller redesign active: false

The new layout is expected to be defined at the same path with the name prefixed with “redesigned_”

If a controller calls layout use redesign active: true to use redesigned layouts. This will affect to inheriting controllers not calling layout again

For participatory spaces replace participatory_space_layout with redesign_participatory_space_layout. It will enable redesign for all actions in the controller using redesigned FALLBACK_LAYOUT on actions not covered by conditions

Constant Summary collapse