btw... with the new app you can add a sidebar (left, right or both to
any page) by doing:
#in view/default/index.html for exmaple
{{left_sidebar_enabled=True}}
{{extend 'layout.html'}}
Main content goes here
{{block right_sidebar}}New Right Sidebar Content{{end}}
OR
{{right_sidebar_enabled=True}}
{{extend 'layout.html'}}
Main content goes here
{{block right_sidebar}}New Right Sidebar Content{{end}}
OR
{{left_sidebar_enabled=right_sidebar_enabled=True}}
{{extend 'layout.html'}}
Main content goes here
{{block left_sidebar}}New Left Sidebar Content{{end}}
{{block right_sidebar}}New Right Sidebar Content{{end}}
I really like this from Martin's design.
Massimo
On Nov 3, 12:00 am, mdipierro <[email protected]> wrote:
> The new welcome app proposed by Martin (in HTML5) is in trunk.
>
> Excellent job Martin.
>
> I made some changes:
> - removed the tests (because make it un-necessarily heavy)
> - removed jgrowl
> - moved the ok, warn, error login into the controller
> - moved the left_sidebar_enabled and right_sidebar_enabled logic into
> layout.html
> - moved the flash back to the top-right corner
> - renamed noti_ok.png to ok.png (same for error and warn).
>
> Now we have a minor problem...
> This breaks all layouts (web2py.com/layouts) and the wizard.
> They all assume superfish.js is in the static/ folder but now it is in
> static/js/superfish.js
>
> We have two solutions:
> 1) change all layouts w2p files to look for superfish in static/ or in
> static/js
> 2) move all the current static files in static/ and our of static/css,
> static/js, static/images/.
>
> Probably 1) is a better option.
>
> Massimo