Refactor erb templates into haml for messages