-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style ZMI using Bootstrap #249
Conversation
@tseaver: At the last sprint we did discuss that adding the dependency on bootstrap would be the right way to go (You where not there, so you probably missed it). We did not discuss anything about a python dependency to serve those resources. |
I'm not intrinsically opposed to adding a dependency on |
It seems to me that Not sure if this is really worth it, as the bundled bootstrap is really only usable by the manage interface itself, thus caching seems not to be so important? |
@icemac I really like the progress you guys have achieved here, I do however feel that the look that we already had (though still at the spiking stage) was cleaner and smoother. I would really like it if you could go further into the direction set by our prototype. What do you think? |
The branch requires the merge of zopefoundation/Zope#249. Currently only the icon for CookieCrumber is added as an example.
The branch requires the merge of zopefoundation/Zope#249. Currently only the icon for CookieCrumber is added as an example.
@dwt This PR is mainly to show it is possible to style the ZMI using Bootstrap by changing the code in the Zope core. We did not write any custom CSS but took only the one which came with Bootstrap. Additionally we wanted to avoid writing custom JS if possible. I know there are plenty abilities to make it smoother and nicer. Maybe the next sprint could be a possibility to finalize the styling. |
@tseaver @pbauer Discussing the taken approach using |
+1 for using resource directories instead of fanstatic. Todays static resource build and deployment tools are quite different from fanstatic. Resource directories support any build environment, fanstatic has their own tools. Besides of that, both the new ZMI looks very nice - the @icemac version as well as the @dwt The templates also got a nice cleanup. Although all templates are still DTML - I know it's out of scope for this PR but IMO it would make a nice sprint topic to migrating everything to TAL templates and browser views. |
Bootstrap is not called "Twitter Bootstrap" since quite a few years already. |
@thet: you can currently find our branch here: https://zmslabs.org/trac/browser/ZMS/branches/zope4 @icemac: I agree that loads of custom css / js are not the right initial push, but I think that it could be little effort, to get even plain bootstrap more into the direction we set forth. Some examples:
Of course we can always work towards this in a future sprint - but I feel these could be good guidelines for you when you guys work on this right now. In any case: Thanks for the work! |
@dwt and @drfho |
* master: Use newer Version of chameleon Document min virtualenv version. fix spelling error fix link to download location of FieldedTextIndex fix spelling error fix link to TextIndexNG3 project fix spelling error fix spelling error fix spelling error complete abrupt ending sentence add missing single quotation mark Add entry which got lost during consolidation Create all scripts only once.
[skip ci]
Yes, adding the zmi-bootstrap branch to MailHost was intentional as it was missing before and this branch is not yet ready.
WIP styling the ZMI of Zope 4 using Bootstrap. (This is part of a customer funded project. – There is still a need for )
It does not seem to make sense to have custom infrastructure to style the ZMI so we integrated it right into the core.
Using fanstatic to serve the static assets seemed to be the easiest way. (We have been using this WSGI middleware for years in production.) But there was neither a discussion nor a consensus about using it. But it is relatively lightweight according to its dependencies and its runtime impact.
Using this branch the ZMI currently (time when creating this PR) looks like this:
Whereas the same view on current master looks like this:
We decided against removing the frames as this would require AJAX calls for the tree as otherwise it has to be rendered at each page.
What do you think about it?
Related packages having a
zmi-bootstrap
branch which need to be merged along with this PR:Open issues:
fanstatic
by resource directories.Document how to update an existing Zope instance (callingnot needed as we do not usebin/mkwsgiinstance
again does not touch already generated files.)fanstatic