spree/spree — pull request #995 by mikz (2012-01-19 10:17:10+00:00)
Title: fix escaping issues on order details page in admin menu (round #2)

fixed problems:

* when there is no shipment or payment state it will print all states to template
* when using currency format with html characters, like `"%n %u"` it is escaped
* properly escape strings in javascript template (`j` is alias to `escape_javascript`)

would be nice to have some decorator to DRY these state lookups

ran all spec locally and it is green (http://travis-ci.org/#!/spree/spree/jobs/543599 issue fixed)