mx3 / mx

The Rails 3 fork of mx
http://mx-phenomix.org
6 stars 2 forks source link

simple notice styling #60

Closed mjy closed 12 years ago

mjy commented 12 years ago

Would like to be able to style our notices according to some arbitrary class like

  notice "Foo is a normal status"
  warning notice "Something bad happened, I'm colored differently."

How the method is called doesn't really matter, it could be a parameter (notice "foo", :warning), but it should be remain as clean as the notice "foo" style

I suspect there might be a Railsy way of doing this already?

caryfitzhugh commented 12 years ago

If you do:

Notice, warning, error they all should work the same.

Notice "foo" Warning "foo" Error "foo"

It may be warn (or warning) don't remember.

And they may not be styled differently yet, but I thought they were.... I can check.

Cary On May 12, 2012 12:54 PM, "Matt" < reply@reply.github.com> wrote:

Would like to be able to style our notices according to some arbitrary class like

 notice "Foo is a normal status"
 warning notice "Something bad happened, I'm colored differently."

How the method is called doesn't really matter, it could be a parameter (notice "foo", :warning), but it should be remain as clean as the notice "foo" style

I suspect there might be a Railsy way of doing this already?


Reply to this email directly or view it on GitHub: https://github.com/mx3/mx/issues/60

mjy commented 12 years ago

Well that's a hell of a thing. Easiest fix you've ever made.