Closed gunn closed 13 years ago
@gunn Ah ok, I see. And is it doable to have a theme switcher? And refactor current theme to be compatible with new markup?
@drewda yep, some help would be great. @kaapa's done some more on this too - see gunn/rails_admin#37
By they way I've been using the activo branch in production projects for a few weeks now and it's working very well.
@bbenezech yes definitely doable (in JS or rails), I've kept all the activo stuff separate, although some files e.g. list.css may have some styles written with activo in mind. The current look could be applied closely (although probably not identically without a lot of effort) to the new markup. The new markup is cleaner, more semantic, and has more hooks for styling.
@gunn Thanks, that's awesome.
@gunn sure, I'll see what I can do.
How can I update en existing rails_admin installation to use the activo branch? Just changing the dependency in the Gemfile doesn't work (the style changes but it's all fucked up.
Hi @soulnafein changing the Gemfile is all you should need to do. Perhaps gem "rails_admin", git: "git://github.com/gunn/rails_admin.git", branch: "activo", ref: "b6386f7a"
as the HEAD is a bit unpolished right now.
What are the problems specifically? Were you sure to restart rails? Could you have some outdated rails_admin static assets in your public directory (perhaps from running rake rails_admin:copy_assets
)?
And merged! See #477.
@gunn Nice job!
Thanks @kaylarose and everyone who helped with this.
I've updated my installation with the new master. It's fine. What I had to do is call again the rails_admin:install command. Without that I wouldn't get the right style.
Anyway I've noticed a problem on Firefox 4 Ubuntu 11.04 (at least in my installation). When I apply a filter to a list of models, the filter appear without a background and it looks nasty :) Is it that a known issue?
Please refer to #484
@soulnafein Thanks for that tip. The styling was suddenly all confused on my installation. After running rake rails_admin:install
, things seem to be working with the new Activo styling.
@gunn You did a excellent job with this, but now i'm working on Rails 3.1, so i'm not be able to use it.
Where can i find an update? Thanks.
Update: See the new pretty rails_admin live here: http://rails-admin.heroku.com See the code here: https://github.com/gunn/rails_admin/tree/activo
...
I've put up a repo with some mockups at: https://github.com/gunn/rails_admin-prototypes/
The idea would be to base this on the current jquery branch, and modify the markup to be consistent with what the web-app-theme project provides. This would make us compatible with a few nice css / js themes in addition to the one shown in my mockups.
What do people think?