convert events views to haml