Rewritten another configuration parts to Haml, edited helper.