Converted the layout view to HAML