mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
The .content div provides overall page margins and a max width, and is already nested inside the nav menus (this allows the nav background to fill the full width of the page. The main content area should be structured the same way, so we can have flexibility needed to allow some screens to use the full page. This doesn't seem to change the layout of any screens in the admin interface. Now the table content can stretch full width
16 lines
659 B
Plaintext
16 lines
659 B
Plaintext
!!!
|
|
%html{:lang => "en", "ng-csp": "no-unsafe-eval" }
|
|
%head
|
|
= render :partial => 'spree/admin/shared/head'
|
|
|
|
%body.admin{ "data-turbo": "false", class: yield(:body_class) }
|
|
- if content_for?(:main_ng_app_name)
|
|
- if content_for?(:main_ng_ctrl_name)
|
|
%div{ "ng-app" => yield(:main_ng_app_name).strip.html_safe, "ng-controller" => yield(:main_ng_ctrl_name).strip.html_safe }
|
|
= render :partial => 'spree/layouts/admin_body'
|
|
- else
|
|
%div{ "ng-app" => yield(:main_ng_app_name).strip.html_safe }
|
|
= render :partial => 'spree/layouts/admin_body'
|
|
- else
|
|
= render :partial => 'spree/layouts/admin_body'
|