spree/spree — pull request #991 by mikz (2012-01-18 20:22:14+00:00)
Title: fix escaping issues on order details page in admin menu

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